Browse Source

Merge pull request #121 from lucamilanesio/master

Allows the home root link top-left anchor to be customised.
tags/v1.4.0
James Moger 10 years ago
parent
commit
07d55f6164

+ 7
- 0
src/main/distrib/data/gitblit.properties View File

@@ -581,6 +581,13 @@ web.siteName =
# 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.
#

+ 2
- 1
src/main/java/com/gitblit/wicket/pages/BasePage.java View File

@@ -212,7 +212,8 @@ public abstract class BasePage extends SessionPage {
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);

Loading…
Cancel
Save