mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Fixed backButton placeholder for plugins tabs
This commit is contained in:
parent
6339696b58
commit
6936b6cb54
@ -102,7 +102,6 @@ public class PlayerPage implements Page {
|
||||
placeholders.put("timeZone", config.getTimeZoneOffsetHours());
|
||||
placeholders.put("gmPieColors", theme.getValue(ThemeVal.GRAPH_GM_PIE));
|
||||
|
||||
placeholders.put("backButton", (serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK : Html.BACK_BUTTON_SERVER).create());
|
||||
placeholders.put("contributors", Contributors.generateContributorHtml());
|
||||
|
||||
String html = locale.replaceLanguageInHtml(placeholders.apply(templateHtml));
|
||||
@ -110,6 +109,7 @@ public class PlayerPage implements Page {
|
||||
placeholders = new PlaceholderReplacer();
|
||||
PlayerPluginTab pluginTabs = pageFactory.inspectPluginTabs(playerUUID);
|
||||
|
||||
placeholders.put("backButton", (serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK : Html.BACK_BUTTON_SERVER).create());
|
||||
placeholders.put("navPluginsTabs", pluginTabs.getNav());
|
||||
placeholders.put("pluginsTabs", pluginTabs.getTab());
|
||||
|
||||
|
@ -88,7 +88,6 @@ public class ServerPage implements Page {
|
||||
placeholders.put("timeZone", config.getTimeZoneOffsetHours());
|
||||
placeholders.put("gmPieColors", theme.getValue(ThemeVal.GRAPH_GM_PIE));
|
||||
|
||||
placeholders.put("backButton", serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK.create() : "");
|
||||
placeholders.put("contributors", Contributors.generateContributorHtml());
|
||||
placeholders.put("version", versionChecker.getUpdateButton().orElse(versionChecker.getCurrentVersionButton()));
|
||||
placeholders.put("updateModal", versionChecker.getUpdateModal());
|
||||
@ -102,6 +101,7 @@ public class ServerPage implements Page {
|
||||
String tabs = JSONCache.getOrCacheString(DataID.EXTENSION_TABS, serverUUID, () -> pluginTabs.get().getTabs());
|
||||
|
||||
PlaceholderReplacer pluginPlaceholders = new PlaceholderReplacer();
|
||||
pluginPlaceholders.put("backButton", serverInfo.getServer().isProxy() ? Html.BACK_BUTTON_NETWORK.create() : "");
|
||||
pluginPlaceholders.put("navPluginsTabs", nav);
|
||||
pluginPlaceholders.put("tabsPlugins", tabs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user