Merge "Allow configuring the Report Bug URL"
This commit is contained in:
@@ -58,8 +58,8 @@ import com.google.gwt.user.client.ui.Accessibility;
|
||||
import com.google.gwt.user.client.ui.Anchor;
|
||||
import com.google.gwt.user.client.ui.FlowPanel;
|
||||
import com.google.gwt.user.client.ui.Grid;
|
||||
import com.google.gwt.user.client.ui.HTML;
|
||||
import com.google.gwt.user.client.ui.HTMLTable.CellFormatter;
|
||||
import com.google.gwt.user.client.ui.InlineHTML;
|
||||
import com.google.gwt.user.client.ui.InlineLabel;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
import com.google.gwt.user.client.ui.RootPanel;
|
||||
@@ -447,9 +447,19 @@ public class Gerrit implements EntryPoint {
|
||||
vs = "dev";
|
||||
}
|
||||
|
||||
final HTML version = new HTML(M.poweredBy(vs));
|
||||
version.setStyleName(RESOURCES.css().version());
|
||||
btmmenu.add(version);
|
||||
FlowPanel poweredBy = new FlowPanel();
|
||||
poweredBy.setStyleName(RESOURCES.css().version());
|
||||
poweredBy.add(new InlineHTML(M.poweredBy(vs)));
|
||||
if (getConfig().getReportBugUrl() != null) {
|
||||
poweredBy.add(new InlineLabel(" | "));
|
||||
Anchor a = new Anchor(
|
||||
C.reportBug(),
|
||||
getConfig().getReportBugUrl());
|
||||
a.setTarget("_blank");
|
||||
a.setStyleName("");
|
||||
poweredBy.add(a);
|
||||
}
|
||||
btmmenu.add(poweredBy);
|
||||
}
|
||||
|
||||
private void onModuleLoad2() {
|
||||
|
||||
@@ -21,6 +21,7 @@ public interface GerritConstants extends Constants {
|
||||
String menuSignOut();
|
||||
String menuRegister();
|
||||
String menuSettings();
|
||||
String reportBug();
|
||||
|
||||
String signInDialogTitle();
|
||||
String signInDialogClose();
|
||||
|
||||
@@ -2,6 +2,7 @@ menuSignIn = Sign In
|
||||
menuSignOut = Sign Out
|
||||
menuRegister = Register
|
||||
menuSettings = Settings
|
||||
reportBug = Report Bug
|
||||
|
||||
signInDialogTitle = Code Review - Sign In
|
||||
signInDialogClose = Close
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
windowTitle1 = {0} Code Review
|
||||
windowTitle2 = {0} | {1} Code Review
|
||||
poweredBy = Powered by <a href="http://code.google.com/p/gerrit/" target="_blank">Gerrit Code Review</a> ({0}) \
|
||||
| <a href="http://code.google.com/p/gerrit/issues/list" target="_blank">Report Bug</a>
|
||||
poweredBy = Powered by <a href="http://code.google.com/p/gerrit/" target="_blank">Gerrit Code Review</a> ({0})
|
||||
|
||||
noSuchAccountMessage = {0} is not a registered user.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user