diff options
author | Luca Milanesio <luca.milanesio@gmail.com> | 2013-11-08 15:51:51 +0000 |
---|---|---|
committer | Luca Milanesio <luca.milanesio@gmail.com> | 2013-11-08 15:53:52 +0000 |
commit | a0831dca3c087658a689bae102e2040a90c48d2e (patch) | |
tree | ed822d29fe4fb183b7a6e114d93f90818981a840 /src/main/java/com/gitblit/wicket | |
parent | 9c7bb3d377a0637ff034be407cb9c03c606647a9 (diff) | |
download | gitblit-a0831dca3c087658a689bae102e2040a90c48d2e.tar.gz gitblit-a0831dca3c087658a689bae102e2040a90c48d2e.zip |
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.
Diffstat (limited to 'src/main/java/com/gitblit/wicket')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/BasePage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/BasePage.java b/src/main/java/com/gitblit/wicket/pages/BasePage.java index f8816831..ec69a719 100644 --- a/src/main/java/com/gitblit/wicket/pages/BasePage.java +++ b/src/main/java/com/gitblit/wicket/pages/BasePage.java @@ -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);
|