Move footer links and rename them to Old UI/New UI
+ Users don’t know what PolyGerrit is, so this changes makes the links more explicit. + Placing the Report Bug and Old UI links on the right side avoids the anchor popup in Chrome obscuring the text itself. Bug: Issue 5241 Change-Id: I1eab389cc311df786e21553c1869c4453aa3685d
This commit is contained in:
@@ -543,7 +543,7 @@ public class Gerrit implements EntryPoint {
|
|||||||
if (info().gerrit().webUis().contains(UiType.POLYGERRIT)) {
|
if (info().gerrit().webUis().contains(UiType.POLYGERRIT)) {
|
||||||
btmmenu.add(new InlineLabel(" | "));
|
btmmenu.add(new InlineLabel(" | "));
|
||||||
Anchor a = new Anchor(
|
Anchor a = new Anchor(
|
||||||
C.polyGerrit(), GWT.getHostPageBaseURL() + "?polygerrit=1");
|
C.newUi(), GWT.getHostPageBaseURL() + "?polygerrit=1");
|
||||||
a.setStyleName("");
|
a.setStyleName("");
|
||||||
btmmenu.add(a);
|
btmmenu.add(a);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ public interface GerritConstants extends Constants {
|
|||||||
String branchDeletionDialogTitle();
|
String branchDeletionDialogTitle();
|
||||||
String branchDeletionConfirmationMessage();
|
String branchDeletionConfirmationMessage();
|
||||||
|
|
||||||
|
String newUi();
|
||||||
|
|
||||||
String notSignedInTitle();
|
String notSignedInTitle();
|
||||||
String notSignedInBody();
|
String notSignedInBody();
|
||||||
|
|
||||||
@@ -130,6 +132,4 @@ public interface GerritConstants extends Constants {
|
|||||||
|
|
||||||
String searchDropdownChanges();
|
String searchDropdownChanges();
|
||||||
String searchDropdownDoc();
|
String searchDropdownDoc();
|
||||||
|
|
||||||
String polyGerrit();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ branchCreationConfirmationMessage = The following branch was successfully create
|
|||||||
branchDeletionDialogTitle = Branch Deletion
|
branchDeletionDialogTitle = Branch Deletion
|
||||||
branchDeletionConfirmationMessage = Do you really want to delete the following branches?
|
branchDeletionConfirmationMessage = Do you really want to delete the following branches?
|
||||||
|
|
||||||
|
newUi = New UI
|
||||||
|
|
||||||
notSignedInTitle = Code Review - Session Expired
|
notSignedInTitle = Code Review - Session Expired
|
||||||
notSignedInBody = <b>Session Expired</b>\
|
notSignedInBody = <b>Session Expired</b>\
|
||||||
<p>You are no longer signed in to Gerrit Code Review.</p>\
|
<p>You are no longer signed in to Gerrit Code Review.</p>\
|
||||||
@@ -113,5 +115,3 @@ stringListPanelDown = Down
|
|||||||
|
|
||||||
searchDropdownChanges = Changes
|
searchDropdownChanges = Changes
|
||||||
searchDropdownDoc = Docs
|
searchDropdownDoc = Docs
|
||||||
|
|
||||||
polyGerrit = PolyGerrit
|
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ limitations under the License.
|
|||||||
}
|
}
|
||||||
footer {
|
footer {
|
||||||
background-color: var(--footer-background-color, #eee);
|
background-color: var(--footer-background-color, #eee);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
padding: .5rem var(--default-horizontal-margin);
|
padding: .5rem var(--default-horizontal-margin);
|
||||||
}
|
}
|
||||||
main {
|
main {
|
||||||
@@ -128,17 +130,20 @@ limitations under the License.
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<footer role="contentinfo">
|
<footer role="contentinfo">
|
||||||
Powered by <a href="https://www.gerritcodereview.com/" rel="noopener"
|
<div>
|
||||||
target="_blank">Gerrit Code Review</a>
|
Powered by <a href="https://www.gerritcodereview.com/" rel="noopener"
|
||||||
([[_version]])
|
target="_blank">Gerrit Code Review</a>
|
||||||
|
|
([[_version]])
|
||||||
<a class="feedback"
|
</div>
|
||||||
href="https://bugs.chromium.org/p/gerrit/issues/entry?template=PolyGerrit%20Issue"
|
<div>
|
||||||
rel="noopener" target="_blank">Report PolyGerrit Bug</a>
|
<a class="feedback"
|
||||||
<template is="dom-if" if="[[_computeShowGwtUiLink(_serverConfig)]]">
|
href="https://bugs.chromium.org/p/gerrit/issues/entry?template=PolyGerrit%20Issue"
|
||||||
|
|
rel="noopener" target="_blank">Report bug</a>
|
||||||
<a id="gwtLink" href$="/?polygerrit=0#[[_path]]" rel="external">GWT UI</a>
|
<template is="dom-if" if="[[_computeShowGwtUiLink(_serverConfig)]]">
|
||||||
</template>
|
|
|
||||||
|
<a id="gwtLink" href$="/?polygerrit=0#[[_path]]" rel="external">Old UI</a>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<gr-overlay id="keyboardShortcuts" with-backdrop>
|
<gr-overlay id="keyboardShortcuts" with-backdrop>
|
||||||
<gr-keyboard-shortcuts-dialog
|
<gr-keyboard-shortcuts-dialog
|
||||||
|
|||||||
Reference in New Issue
Block a user