Added more social network management.
This commit is contained in:
parent
2318d7462e
commit
cb2195d058
9 changed files with 109 additions and 4 deletions
|
@ -158,6 +158,21 @@ public class Organization extends PathPropertyList
|
|||
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()
|
||||
{
|
||||
return this.inputFile;
|
||||
|
@ -233,6 +248,21 @@ public class Organization extends PathPropertyList
|
|||
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.
|
||||
*
|
||||
|
@ -248,6 +278,36 @@ public class Organization extends PathPropertyList
|
|||
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.
|
||||
*
|
||||
|
|
|
@ -133,7 +133,12 @@ public class Htmlizer
|
|||
|
||||
//
|
||||
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 + "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");
|
||||
|
|
|
@ -77,6 +77,13 @@ public class SocialNetworksPage
|
|||
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()))
|
||||
{
|
||||
data.setAttribute("organizationListLine", index, "organizationListLineMastodonImg", "class", "");
|
||||
|
@ -84,6 +91,27 @@ public class SocialNetworksPage
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,17 +26,25 @@
|
|||
|
||||
<div class="center_table" style="width: 700px;">
|
||||
<div class="legend right" style="float: right; margin-top: -75px;">
|
||||
<div class="left">
|
||||
<div class="left row">
|
||||
<div class="column">
|
||||
<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>
|
||||
<table id="organizations" class="table_classic left">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 200px;">Nom du membre</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>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -49,7 +57,11 @@
|
|||
</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="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="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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/funkwhale-logo.png
Normal file
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/funkwhale-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/funkwhale-logo2.png
Normal file
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/funkwhale-logo2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/mobilizon-logo.png
Normal file
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/mobilizon-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 668 B |
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/peertube-logo.png
Normal file
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/peertube-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/pixelfed-logo.png
Normal file
BIN
src/fr/devinsy/statoolinfos/htmlize/stuff/pixelfed-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Loading…
Reference in a new issue