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({ |