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

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

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
Index: Tools/GardeningServer/ui/ct-failure-card-buttons.html
diff --git a/Tools/GardeningServer/ui/ct-failure-card-buttons.html b/Tools/GardeningServer/ui/ct-failure-card-buttons.html
deleted file mode 100644
index 6979787962d4e62793b162e4bbd1a138c44d44d2..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/ct-failure-card-buttons.html
+++ /dev/null
@@ -1,93 +0,0 @@
-<!--
-Copyright 2014 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-
-<link rel="import" href="../model/ct-builder-list.html">
-<link rel="import" href="ct-button.html">
-<link rel="import" href="ct-view-handler.html">
-<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html">
-<link rel="import" href="../bower_components/paper-dialog/paper-dialog-transition.html">
-<link rel="import" href="../bower_components/paper-input/paper-input.html">
-
-<polymer-element name="ct-failure-card-buttons" attributes="group bug">
- <template>
- <style>
- :host {
- display: flex;
- }
- :host > * {
- margin-right: 5px;
- }
- ct-button {
- white-space: nowrap;
- }
-
- #bugReminder {
- font-size: large;
- color: red;
- }
- </style>
- <ct-view-handler></ct-view-handler>
- <a href="{{ group.examineUrl }}">
- <ct-button id="examine" label="Examine"></ct-button>
- </a>
- <template if="{{ !group.isSnoozed }}">
- <ct-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></ct-button>
- </template>
- <template if="{{ group.isSnoozed }}">
- <ct-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></ct-button>
- </template>
- <ct-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></ct-button>
-
- <paper-dialog heading="Enter bug number" transition="paper-transition-center" id="bugDialog">
- <paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></paper-input>
- <div><a id="fileBugLink" target="_blank" on-click="{{ fileBugClicked }}">
- <template if="{{ !_fileBugClicked }}">
- File bug
- </template>
- </a></div>
- <template if="{{ _fileBugClicked }}">
- <div id="bugReminder">
- Remember to enter the new bug number above!
- </div>
- </template>
- <ct-button label="Remove bug link" on-tap="{{ removeBug }}" dismissive id="dialogRemoveBug"></ct-button>
- <ct-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk"></ct-button>
- </paper-dialog>
- </template>
- <script>
- Polymer({
- group: null,
- _fileBugClicked: false,
-
- snooze: function() {
- this.group.snoozeUntil(Date.now() + 60 * 60 * 1000);
- },
-
- unsnooze: function() {
- this.group.unsnooze();
- },
-
- linkBug: function() {
- this.$.bug.value = this.group.bug;
- this._fileBugClicked = false;
- this.$.fileBugLink.href = this.group.data.fileBugLink();
- this.$.bugDialog.toggle();
- },
-
- saveBug: function() {
- this.group.setBug(this.$.bug.value);
- },
-
- removeBug: function() {
- this.group.clearBug();
- },
-
- fileBugClicked: function() {
- this._fileBugClicked = true;
- },
- });
- </script>
-</polymer-element>
« no previous file with comments | « Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard.html ('k') | Tools/GardeningServer/ui/ct-failure-stream.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698