Allow the text of the "Report Bug" link to be configured

The title text shown on the link to the bug tracker can be configured
in the gerrit.config file.  If not set, it defaults to "Report Bug".

Bug: Issue 2318
Change-Id: I38c6057b96bf97fc96341621c9d8bbb49060dc40
This commit is contained in:
David Pursehouse
2013-12-10 15:36:29 +09:00
parent 6a5850e3d0
commit 753ca33878
4 changed files with 18 additions and 1 deletions

View File

@@ -464,8 +464,9 @@ public class Gerrit implements EntryPoint {
btmmenu.add(new InlineLabel(" | "));
btmmenu.add(new InlineHTML(M.poweredBy(vs)));
final String reportBugText = getConfig().getReportBugText();
Anchor a = new Anchor(
C.reportBug(),
reportBugText == null ? C.reportBug() : reportBugText,
getConfig().getReportBugUrl());
a.setTarget("_blank");
a.setStyleName("");