This commit is contained in:
Socrates
2020-05-26 10:29:34 +02:00
commit 9ed0f2a056
1162 changed files with 162062 additions and 0 deletions

26
web/xava/themeChooser.jsp Normal file
View File

@@ -0,0 +1,26 @@
<%@ include file="imports.jsp"%>
<%@page import="org.openxava.util.Strings"%>
<%@page import="org.openxava.web.style.Themes"%>
<div id="theme_chooser">
<xava:label key="themes"/>:
<%
String nexus = "";
String current = Themes.getCSS(request);
for (String theme: Themes.getAll()) {
String label = Strings.firstUpper(theme.replace(".css", "").replace("-", " "));
if (theme.equals(current)) {
%>
<%=nexus%><b><%=label%></b>
<%
}
else {
%>
<%=nexus%><a href="?theme=<%=theme%>"><%=label%></a>
<%
}
nexus = " - ";
}
%>
</div>