summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-05 13:19:40 -0500
committerJames Moger <james.moger@gitblit.com>2014-03-05 13:19:40 -0500
commit5ec75252b44e58cf300f1d21667603ae8fb76dff (patch)
treee5b8672d9bfd3312fe540a6c02bde03c4ad01488 /src/main/java/com/gitblit/wicket/pages
parent7ca05374db6f6af9de06665c9d2d08acfe85aa4f (diff)
downloadgitblit-5ec75252b44e58cf300f1d21667603ae8fb76dff.tar.gz
gitblit-5ec75252b44e58cf300f1d21667603ae8fb76dff.zip
Add setting to hide the navbar for those embedding Gitblit
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/BasePage.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/BasePage.java b/src/main/java/com/gitblit/wicket/pages/BasePage.java
index 3e3de535..7d3d3a24 100644
--- a/src/main/java/com/gitblit/wicket/pages/BasePage.java
+++ b/src/main/java/com/gitblit/wicket/pages/BasePage.java
@@ -93,6 +93,9 @@ public abstract class BasePage extends SessionPage {
if (app().settings().getBoolean(Keys.web.useResponsiveLayout, true)) {
add(CSSPackageResource.getHeaderContribution("bootstrap/css/bootstrap-responsive.css"));
}
+ if (app().settings().getBoolean(Keys.web.hideHeader, false)) {
+ add(CSSPackageResource.getHeaderContribution("hideheader.css"));
+ }
}
protected String getCanonicalUrl() {