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

Unified Diff: Tools/GardeningServer/ui/ct-failure-card.html

Issue 555493005: [Sheriff-o-matic] Use before content hax to hide category labels instead of ever-present spans (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove premature builders category Created 6 years, 3 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 | Tools/GardeningServer/ui/ct-failure-stream.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-failure-card.html
diff --git a/Tools/GardeningServer/ui/ct-failure-card.html b/Tools/GardeningServer/ui/ct-failure-card.html
index 9c7d0a5ebd63d6bc11a81bb0741af41fac7fa066..d726018188eef68216ce1a5dc4d2ee7d87938c78 100644
--- a/Tools/GardeningServer/ui/ct-failure-card.html
+++ b/Tools/GardeningServer/ui/ct-failure-card.html
@@ -15,6 +15,10 @@ found in the LICENSE file.
<template>
<style>
:host {
+ display: block;
+ }
+
+ #container {
display: flex;
}
@@ -61,36 +65,38 @@ found in the LICENSE file.
opacity: 0.5;
}
</style>
- <div class="card {{ { snoozed: group.isSnoozed } | tokenList }}">
- <template if="{{ group.data.type == 'sheriff' }}">
- <ct-bot-failure-card class='card' group="{{ group.data }}" builderList="{{ _builderList }}"></ct-bot-failure-card>
- </template>
- <template if="{{ group.data.type != 'sheriff' }}">
- <ct-trooper-card class='card' group="{{ group.data }}"></ct-trooper-card>
- </template>
+ <div id="container">
+ <div class="card {{ { snoozed: group.isSnoozed } | tokenList }}">
+ <template if="{{ group.data.type == 'sheriff' }}">
+ <ct-bot-failure-card class='card' group="{{ group.data }}" builderList="{{ _builderList }}"></ct-bot-failure-card>
+ </template>
+ <template if="{{ group.data.type != 'sheriff' }}">
+ <ct-trooper-card class='card' group="{{ group.data }}"></ct-trooper-card>
+ </template>
+ </div>
+ <div id="buttons">
+ <paper-button id="examine" on-tap="{{ examine }}" label="Examine"></paper-button>
+ <template if="{{ !group.isSnoozed }}">
+ <paper-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></paper-button>
+ </template>
+ <template if="{{ group.isSnoozed }}">
+ <paper-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></paper-button>
+ </template>
+ <paper-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></paper-button>
+ <template if="{{ group.bug !== undefined }}">
+ <div>
+ <a href="{{ group.bug }}">
+ {{ group.bugLabel }}</a>
+ </div>
+ </template>
+ </div>
+
+ <paper-dialog heading="Enter bug number" transition="paper-transition-center" id="bugDialog">
+ <paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></paper-input>
+ <paper-button label="Remove bug link" on-tap="{{ removeBug }}" dismissive id="dialogRemoveBug"></paper-button>
+ <paper-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk"></paper-button>
+ </paper-dialog>
</div>
- <div id="buttons">
- <paper-button id="examine" on-tap="{{ examine }}" label="Examine"></paper-button>
- <template if="{{ !group.isSnoozed }}">
- <paper-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></paper-button>
- </template>
- <template if="{{ group.isSnoozed }}">
- <paper-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></paper-button>
- </template>
- <paper-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></paper-button>
- <template if="{{ group.bug !== undefined }}">
- <div>
- <a href="{{ group.bug }}">
- {{ group.bugLabel }}</a>
- </div>
- </template>
- </div>
-
- <paper-dialog heading="Enter bug number" transition="paper-transition-center" id="bugDialog">
- <paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></paper-input>
- <paper-button label="Remove bug link" on-tap="{{ removeBug }}" dismissive id="dialogRemoveBug"></paper-button>
- <paper-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk"></paper-button>
- </paper-dialog>
</template>
<script>
Polymer({
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-failure-stream.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698