Added more social network management.

This commit is contained in:
Christian P. MOMON 2020-10-16 03:50:53 +02:00
parent 2318d7462e
commit cb2195d058
9 changed files with 109 additions and 4 deletions

View file

@ -158,6 +158,21 @@ public class Organization extends PathPropertyList
return this.federation; return this.federation;
} }
/**
* Gets the funkwhale webpage.
*
* @return the funkwhale webpage
*/
public String getFunkwhaleWebpage()
{
String result;
result = get("organization.socialnetworks.funkwhale", "organization.socialnetworks.funkwhale.url");
//
return result;
}
public File getInputFile() public File getInputFile()
{ {
return this.inputFile; return this.inputFile;
@ -233,6 +248,21 @@ public class Organization extends PathPropertyList
return result; return result;
} }
/**
* Gets the mobilizon webpage.
*
* @return the mobilizon webpage
*/
public String getMobilizonWebpage()
{
String result;
result = get("organization.socialnetworks.mobilizon", "organization.socialnetworks.mobilizon.url");
//
return result;
}
/** /**
* Gets the name. * Gets the name.
* *
@ -248,6 +278,36 @@ public class Organization extends PathPropertyList
return result; return result;
} }
/**
* Gets the peertube webpage.
*
* @return the peertube webpage
*/
public String getPeertubeWebpage()
{
String result;
result = get("organization.socialnetworks.peertube", "organization.socialnetworks.peertube.url");
//
return result;
}
/**
* Gets the pixelfed webpage.
*
* @return the pixelfed webpage
*/
public String getPixelfedWebpage()
{
String result;
result = get("organization.socialnetworks.pixelfed", "organization.socialnetworks.pixelfed.url");
//
return result;
}
/** /**
* Gets the service count. * Gets the service count.
* *

View file

@ -133,7 +133,12 @@ public class Htmlizer
// //
StatoolInfosUtils.copyRessource(source + "diaspora-logo.png", targetDirectory); StatoolInfosUtils.copyRessource(source + "diaspora-logo.png", targetDirectory);
StatoolInfosUtils.copyRessource(source + "funkwhale-logo.png", targetDirectory);
StatoolInfosUtils.copyRessource(source + "funkwhale-logo2.png", targetDirectory);
StatoolInfosUtils.copyRessource(source + "mastodon-logo.png", targetDirectory); StatoolInfosUtils.copyRessource(source + "mastodon-logo.png", targetDirectory);
StatoolInfosUtils.copyRessource(source + "mobilizon-logo.png", targetDirectory);
StatoolInfosUtils.copyRessource(source + "peertube-logo.png", targetDirectory);
StatoolInfosUtils.copyRessource(source + "pixelfed-logo.png", targetDirectory);
// //
File color = new File(targetDirectory, "circle-icons/color"); File color = new File(targetDirectory, "circle-icons/color");

View file

@ -77,6 +77,13 @@ public class SocialNetworksPage
data.setAttribute("organizationListLine", index, "organizationListLineDiasporaLink", "href", organization.getDiasporaWebpage()); data.setAttribute("organizationListLine", index, "organizationListLineDiasporaLink", "href", organization.getDiasporaWebpage());
} }
if (StringUtils.isNotBlank(organization.getFunkwhaleWebpage()))
{
data.setAttribute("organizationListLine", index, "organizationListLineFunkwhaleImg", "class", "");
data.getIdData("organizationListLine", index, "organizationListLineFunkwhaleImg").getAttribute("class").setMode(DisplayMode.REPLACE);
data.setAttribute("organizationListLine", index, "organizationListLineFunkwhaleLink", "href", organization.getFunkwhaleWebpage());
}
if (StringUtils.isNotBlank(organization.getMastodonWebpage())) if (StringUtils.isNotBlank(organization.getMastodonWebpage()))
{ {
data.setAttribute("organizationListLine", index, "organizationListLineMastodonImg", "class", ""); data.setAttribute("organizationListLine", index, "organizationListLineMastodonImg", "class", "");
@ -84,6 +91,27 @@ public class SocialNetworksPage
data.setAttribute("organizationListLine", index, "organizationListLineMastodonLink", "href", organization.getMastodonWebpage()); data.setAttribute("organizationListLine", index, "organizationListLineMastodonLink", "href", organization.getMastodonWebpage());
} }
if (StringUtils.isNotBlank(organization.getMobilizonWebpage()))
{
data.setAttribute("organizationListLine", index, "organizationListLineMobilizonImg", "class", "");
data.getIdData("organizationListLine", index, "organizationListLineMobilizonImg").getAttribute("class").setMode(DisplayMode.REPLACE);
data.setAttribute("organizationListLine", index, "organizationListLineMobilizonLink", "href", organization.getMobilizonWebpage());
}
if (StringUtils.isNotBlank(organization.getPixelfedWebpage()))
{
data.setAttribute("organizationListLine", index, "organizationListLinePixelfedImg", "class", "");
data.getIdData("organizationListLine", index, "organizationListLinePixelfedImg").getAttribute("class").setMode(DisplayMode.REPLACE);
data.setAttribute("organizationListLine", index, "organizationListLinePixelfedLink", "href", organization.getPixelfedWebpage());
}
if (StringUtils.isNotBlank(organization.getPeertubeWebpage()))
{
data.setAttribute("organizationListLine", index, "organizationListLinePeertubeImg", "class", "");
data.getIdData("organizationListLine", index, "organizationListLinePeertubeImg").getAttribute("class").setMode(DisplayMode.REPLACE);
data.setAttribute("organizationListLine", index, "organizationListLinePeertubeLink", "href", organization.getPeertubeWebpage());
}
index += 1; index += 1;
} }

View file

@ -26,9 +26,17 @@
<div class="center_table" style="width: 700px;"> <div class="center_table" style="width: 700px;">
<div class="legend right" style="float: right; margin-top: -75px;"> <div class="legend right" style="float: right; margin-top: -75px;">
<div class="left"> <div class="left row">
<img src="diaspora-logo.png" title="Diaspora"/>Diaspora*<br/> <div class="column">
<img src="mastodon-logo.png" title="Mastodon"/>Mastodon<br/> <img src="diaspora-logo.png" title="Diaspora"/>Diaspora*<br/>
<img src="funkwhale-logo.png" title="Funkwhale"/>Funkwhale<br/>
<img src="mastodon-logo.png" title="Mastodon"/>Mastodon<br/>
</div>
<div class="column">
<img src="mobilizon-logo.png" title="Mobilizon"/>Mobilizon<br/>
<img src="peertube-logo.png" title="Peertube"/>Peertube<br/>
<img src="pixelfed-logo.png" title="Pixelfed"/>Pixelfed<br/>
</div>
</div> </div>
</div> </div>
<table id="organizations" class="table_classic left"> <table id="organizations" class="table_classic left">
@ -36,7 +44,7 @@
<tr> <tr>
<th style="width: 200px;">Nom du membre</th> <th style="width: 200px;">Nom du membre</th>
<th style="">URL</th> <th style="">URL</th>
<th style="width: 10px;" colspan="2">Réseaux sociaux</th> <th style="width: 10px;" colspan="6">Réseaux sociaux</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -49,7 +57,11 @@
</td> </td>
<td id="organizationListLineUrl"><a href="#" id="organizationListLineUrlLink">n/a</a></td> <td id="organizationListLineUrl"><a href="#" id="organizationListLineUrlLink">n/a</a></td>
<td id="" class="td_center center"><a id="organizationListLineDiasporaLink" href="#"><img id="organizationListLineDiasporaImg" src="diaspora-logo.png" class="disabled" title="Diaspora*" style="width: 25px;"/></a></td> <td id="" class="td_center center"><a id="organizationListLineDiasporaLink" href="#"><img id="organizationListLineDiasporaImg" src="diaspora-logo.png" class="disabled" title="Diaspora*" style="width: 25px;"/></a></td>
<td id="" class="td_center center"><a id="organizationListLineFunkwhaleLink" href="#"><img id="organizationListLineFunkwhaleImg" src="funkwhale-logo.png" class="disabled" title="Funkwhale" style="width: 25px;"/></a></td>
<td id="" class="td_center center"><a id="organizationListLineMastodonLink" href="#"><img id="organizationListLineMastodonImg" src="mastodon-logo.png" class="disabled" title="Mastodon" style="width: 25px;"/></a></td> <td id="" class="td_center center"><a id="organizationListLineMastodonLink" href="#"><img id="organizationListLineMastodonImg" src="mastodon-logo.png" class="disabled" title="Mastodon" style="width: 25px;"/></a></td>
<td id="" class="td_center center"><a id="organizationListLineMobilizonLink" href="#"><img id="organizationListLineMobilizonImg" src="mobilizon-logo.png" class="disabled" title="Mobilizon" style="width: 25px;"/></a></td>
<td id="" class="td_center center"><a id="organizationListLinePeertubeLink" href="#"><img id="organizationListLinePeertubeImg" src="peertube-logo.png" class="disabled" title="Peertube" style="width: 25px;"/></a></td>
<td id="" class="td_center center"><a id="organizationListLinePixelfedLink" href="#"><img id="organizationListLinePixelfedImg" src="pixelfed-logo.png" class="disabled" title="Pixelfed" style="width: 25px;"/></a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB