Merge "Add messaging about Change Log experiment"
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
import '@polymer/paper-toggle-button/paper-toggle-button.js';
|
||||
import '../../shared/gr-button/gr-button.js';
|
||||
import '../../shared/gr-icons/gr-icons.js';
|
||||
import '../gr-message/gr-message.js';
|
||||
import '../../../styles/shared-styles.js';
|
||||
import {dom} from '@polymer/polymer/lib/legacy/polymer.dom.js';
|
||||
|
||||
@@ -51,6 +51,14 @@ export const htmlTemplate = html`
|
||||
gr-message {
|
||||
background-color: var(--background-color-secondary);
|
||||
}
|
||||
.experimentMessage {
|
||||
padding: var(--spacing-s) var(--spacing-m);
|
||||
background-color: var(--emphasis-color);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
.experimentMessage iron-icon {
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
<div class="header">
|
||||
<span
|
||||
@@ -65,6 +73,16 @@ export const htmlTemplate = html`
|
||||
>Show all entries
|
||||
<span class="transparent separator"></span>
|
||||
</span>
|
||||
<div class="experimentMessage">
|
||||
<iron-icon icon="gr-icons:pets"></iron-icon>
|
||||
<span>You're currently viewing an experimental Change Log view.</span>
|
||||
<a
|
||||
target="_blank"
|
||||
href="https://www.gerritcodereview.com/2020-05-06-change-log-experiment.html"
|
||||
>
|
||||
Learn more
|
||||
</a>
|
||||
</div>
|
||||
<gr-button
|
||||
id="collapse-messages"
|
||||
link=""
|
||||
|
||||
@@ -98,6 +98,8 @@ $_documentContainer.innerHTML = `<iron-iconset-svg name="gr-icons" size="24">
|
||||
<g id="zeroState"><path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4v3h-4zM6 7h5v5H6zm6 4h4v6h-4z"></path></g>
|
||||
<!-- This SVG is an adaptation of material.io https://material.io/icons/#label_important-->
|
||||
<g id="attention"><path d="M5.5 19 l9 0 c.67 0 1.27 -.33 1.63 -.84 L20.5 12 l-4.37 -6.16 c-.36 -.51 -.96 -.84 -1.63 -.84 l-9 0 L9 12 z"></path></g>
|
||||
<!-- This SVG is a copy from material.io https://material.io/icons/#pets-->
|
||||
<g id="pets"><circle cx="4.5" cy="9.5" r="2.5"/><circle cx="9" cy="5.5" r="2.5"/><circle cx="15" cy="5.5" r="2.5"/><circle cx="19.5" cy="9.5" r="2.5"/><path d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"/><path d="M0 0h24v24H0z" fill="none"/></g>
|
||||
</defs>
|
||||
</svg>
|
||||
</iron-iconset-svg>`;
|
||||
|
||||
Reference in New Issue
Block a user