Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
6932a57c
Commit
6932a57c
authored
Dec 09, 2020
by
michael.simon
Browse files
Add more changeable header variables
parent
4b5c15f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/HeadBarBean.java
View file @
6932a57c
...
...
@@ -20,10 +20,18 @@ public class HeadBarBean {
public
ApplicationConfig
getAppConfig
()
{
return
appConfig
;
}
public
String
getStylesheet
()
{
return
getApplicationBase
()
+
getOrDefault
(
request
.
getServerName
()
+
"_css"
,
""
);
}
public
String
getStylesheetExtended
()
{
return
getApplicationBase
()
+
getOrDefault
(
request
.
getServerName
()
+
"_css_ext"
,
"/resources/css/std-ext.css"
);
}
public
String
getOverrideStdStylesheet
()
{
return
getApplicationBase
()
+
getOrDefault
(
request
.
getServerName
()
+
"override_std_css"
,
"/resources/css/std.css"
);
}
public
String
getHeaderImage
()
{
return
getApplicationBase
()
+
getOrDefault
(
request
.
getServerName
()
+
"_header_icon"
,
"/resources/img/logo.svg"
);
...
...
bwreg-webapp/src/main/webapp/template/layout-template.xhtml
View file @
6932a57c
...
...
@@ -18,16 +18,16 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"theme-color"
content=
"#009682"
/>
<meta
http-equiv=
"cleartype"
content=
"on"
/>
<title>
#{
t
itle}
</title>
<title>
#{
headBarBean.headerT
itle}
</title>
</f:facet>
<link
rel=
"stylesheet"
href=
"https://static.scc.kit.edu/fancybox/dist/jquery.fancybox.min.css"
/>
<link
rel=
"stylesheet"
href=
"https://static.scc.kit.edu/kit-2020/fontawesome/css/all.min.css"
/>
<
h:outputStylesheet
name=
"css/std.css
"
/>
<
h:outputStylesheet
name=
"css/std-ext.css
"
/>
<
link
rel=
"stylesheet"
href=
"#{headBarBean.overrideStdStylesheet}
"
/>
<
link
rel=
"stylesheet"
href=
"#{headBarBean.stylesheetExtended}
"
/>
<h:panelGroup
rendered=
"#{not empty headBarBean.stylesheet}"
>
<link
rel=
"stylesheet"
href=
"#{headBarBean.stylesheet}"
/>
<link
rel=
"stylesheet"
href=
"#{headBarBean.stylesheet}"
/>
</h:panelGroup>
<h:outputScript
library=
"javax.faces"
name=
"jsf.js"
target=
"head"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment