Commit 0effe25b by Tuomas Riihimäki

Moar template tabfix

1 parent 9097846f
......@@ -8,7 +8,7 @@
</composite:interface>
<composite:implementation>
<h:outputStylesheet library="templates/insomnia2/css/" name="tabnav.css" />
<h:outputStylesheet library="templates/#{sessionHandler.templateName}/css" name="tabnav.css" />
<div class="userstatus" style="float: right; margin-right: 10px; color: #7DAC0C; font-size: 16px;">
<h:outputText value="#{i18n['user.cardPower']}: #{userView.usersCardtemplate.name}" />
</div>
......
......@@ -71,7 +71,7 @@ public class SessionHandler {
return template;
}
public String getTemplatePath()
public String getTemplateName()
{
if (template == null) {
template = eventbean.getPropertyString(LanEventPropertyKey.EVENT_LAYOUT);
......@@ -80,7 +80,13 @@ public class SessionHandler {
template = "insomnia2";
}
return "/resources/templates/" + template;
return template;
}
public String getTemplatePath()
{
return "/resources/templates/" + getTemplateName();
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!