diff options
author | James Moger <james.moger@gitblit.com> | 2013-05-16 07:42:26 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-05-16 07:42:26 -0400 |
commit | 4570856f4a114ae93036554d8b4fb315b8bc5989 (patch) | |
tree | 5c44855692c5dfcbc5daf3076a49b709a45a7a94 /src/main/java/com/gitblit | |
parent | f6b9cd98683f19489b10ea6153d2585cb306e88e (diff) | |
download | gitblit-4570856f4a114ae93036554d8b4fb315b8bc5989.tar.gz gitblit-4570856f4a114ae93036554d8b4fb315b8bc5989.zip |
Fixed sitename in page title
Diffstat (limited to 'src/main/java/com/gitblit')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/BasePage.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/BasePage.java b/src/main/java/com/gitblit/wicket/pages/BasePage.java index 9a1d467a..39713b3f 100644 --- a/src/main/java/com/gitblit/wicket/pages/BasePage.java +++ b/src/main/java/com/gitblit/wicket/pages/BasePage.java @@ -127,14 +127,15 @@ public abstract class BasePage extends SessionPage { }
protected void setupPage(String repositoryName, String pageName) {
+ String siteName = GitBlit.getString(Keys.web.siteName, Constants.NAME);
if (repositoryName != null && repositoryName.trim().length() > 0) {
- add(new Label("title", repositoryName + " - " + Keys.web.siteName));
+ add(new Label("title", repositoryName + " - " + siteName));
} else {
- add(new Label("title", Keys.web.siteName));
+ add(new Label("title", siteName));
}
ExternalLink rootLink = new ExternalLink("rootLink", urlFor(RepositoriesPage.class, null).toString());
- WicketUtils.setHtmlTooltip(rootLink, GitBlit.getString(Keys.web.siteName, Constants.NAME));
+ WicketUtils.setHtmlTooltip(rootLink, siteName);
add(rootLink);
// Feedback panel for info, warning, and non-fatal error messages
|