Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: go/src/infra/appengine/sheriff-o-matic/elements/som-alert-item.html

Issue 2081383004: SoM: Added notice about chromium webkit failures + documentation links. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Changed logic to just check the tree. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | go/src/infra/appengine/sheriff-o-matic/elements/som-app.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/appengine/sheriff-o-matic/elements/som-alert-item.html
diff --git a/go/src/infra/appengine/sheriff-o-matic/elements/som-alert-item.html b/go/src/infra/appengine/sheriff-o-matic/elements/som-alert-item.html
index 31bee61553763a9ed92195843dd057367a975717..77309dece82080ca40c0235f6040c4a495d968dd 100644
--- a/go/src/infra/appengine/sheriff-o-matic/elements/som-alert-item.html
+++ b/go/src/infra/appengine/sheriff-o-matic/elements/som-alert-item.html
@@ -54,7 +54,8 @@
#root {
transition: opacity .25s;
}
- #bugsList {
+ #bugsList,
+ #handleLink {
margin-left: 15px;
}
hr {
@@ -70,7 +71,10 @@
<div class="list-item">
<div class="alert-title-bar horizontal layout justified">
<div class="horizontal layout">
- <div class="alert-title self-center">[[alert.title]]</div>
+ <div class="alert-title self-center">[[alert.title]] </div>
+ <div id="handleLink" class="self-center" hidden$="[[!_helpLinkForAlert(alert)]]">
+ [<a href="[[_helpLinkForAlert(alert)]]">Help</a>]
+ </div>
<div id="bugsList" hidden$="[[!_hasBugs]]" class="alert-links">
<template is="dom-repeat" items="[[annotation.bugs]]" as="bug">
<a target="_blank" href$="[[bug]]">[[_bugLabel(bug)]]</a>
@@ -189,6 +193,19 @@
return `Active for: ${hours}h ${minutes}m ${seconds}s`;
},
+ _helpLinkForAlert: function(alert) {
+ // TODO(zhangtiff): Add documentation links for other kinds of alerts
+ if (this._alertIsWebkit(alert)) {
+ return "http://www.chromium.org/blink/sheriffing";
+ }
+ return null;
+ },
+
+ _alertIsWebkit(alert) {
+ // TODO(zhangtiff): Find a better way to categorize alerts
+ return alert.key.includes("chromium.webkit");
+ },
+
_classForAlert: function(alert, selected) {
return 'alert' + (selected ? ' selected' : '');
},
« no previous file with comments | « no previous file | go/src/infra/appengine/sheriff-o-matic/elements/som-app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698