Hopefully fixed "row" display for "No Plugins" on some systems #413

This commit is contained in:
Rsl1122 2017-11-07 20:59:40 +02:00
parent 2c2fc24643
commit 30a3b86bbe
2 changed files with 5 additions and 6 deletions

View File

@ -45,7 +45,7 @@ public enum Html {
DIV_W_CLASS("<div class=\"${0}\">${1}</div>"),
DIV_W_CLASS_STYLE("<div class=\"${0}\" style=\"${1}\">${2}</div>"),
//
ROW(DIV_W_CLASS.parse("row", "${0}")),
ROW("<div class=\"row\">${0}</div>"),
//
TABLE_END("</tbody></table>"),
TABLE_START_2("<table class=\"sortable table\"><thead><tr><th>${0}</th><th>${1}</th></tr></thead><tbody>"),

View File

@ -113,11 +113,10 @@ public class HtmlStructure {
String icon = Html.FONT_AWESOME_ICON.parse("server");
// TODO Move plain text to Locale
String headerText = Html.HEADER_2.parse(icon + " " + serverName) + Html.PARAGRAPH.parse("No Compatible Plugins");
return Html.DIV_W_CLASS.parse("plugins-server",
Html.DIV_W_CLASS.parse("plugins-header",
Html.ROW.parse(Html.DIV_W_CLASS.parse("box-header", headerText))
)
);
String header = Html.DIV_W_CLASS.parse("box-header", headerText);
String row = Html.ROW.parse(header);
String pluginsHeader = Html.DIV_W_CLASS.parse("plugins-header", row);
return Html.DIV_W_CLASS.parse("plugins-server", pluginsHeader);
}
Map<String, List<String>> placeholders = getPlaceholdersInspect(plugins);