Luca Milanesio
2013-11-08 a0831dca3c087658a689bae102e2040a90c48d2e
Allows the home root link top-left anchor to be customised.

A new property web.rootLink has been introduced to
customise the link underlying the top-left logo in GitBlit.
When undefined the older behaviour is to link to the
GitBlit home page.
2 files modified
10 ■■■■■ changed files
src/main/distrib/data/gitblit.properties 7 ●●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/wicket/pages/BasePage.java 3 ●●●● patch | view | raw | blame | history
src/main/distrib/data/gitblit.properties
@@ -581,6 +581,13 @@
# BASEFOLDER
web.headerLogo = ${baseFolder}/logo.png
# You may specify a different link URL for the logo image anchor.
# If blank the Gitblit main page URL is used.
#
# SINCE 1.3.0
# BASEFOLDER
web.rootLink =
# You may specify a custom header background CSS color.  If unspecified, the
# default color will be used.
#
src/main/java/com/gitblit/wicket/pages/BasePage.java
@@ -212,7 +212,8 @@
            add(new Label("title", siteName));
        }
        ExternalLink rootLink = new ExternalLink("rootLink", urlFor(GitBlitWebApp.HOME_PAGE_CLASS, null).toString());
        String rootLinkUrl = GitBlit.getString(Keys.web.rootLink, urlFor(GitBlitWebApp.HOME_PAGE_CLASS, null).toString());
        ExternalLink rootLink = new ExternalLink("rootLink", rootLinkUrl);
        WicketUtils.setHtmlTooltip(rootLink, GitBlit.getString(Keys.web.siteName, Constants.NAME));
        add(rootLink);