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

Unified Diff: appengine/sheriff_o_matic/ui/ct-builder.html

Issue 1315693002: SoM: upgrade Polymer from 0.5 to 1.0 Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: get bower_components from polymer_1.0.4 Created 5 years, 4 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
Index: appengine/sheriff_o_matic/ui/ct-builder.html
diff --git a/appengine/sheriff_o_matic/ui/ct-builder.html b/appengine/sheriff_o_matic/ui/ct-builder.html
index 893c344e4a3644b97020d1e1ba5844b58c1fb657..dadf0dc153acfebd4ee43301f905213845590db3 100644
--- a/appengine/sheriff_o_matic/ui/ct-builder.html
+++ b/appengine/sheriff_o_matic/ui/ct-builder.html
@@ -2,23 +2,29 @@
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.
--->
+--><html><head><link rel="import" href="ct-user-prefs.html">
-<link rel="import" href="ct-user-prefs.html">
-
-<polymer-element name="ct-builder" attributes="builder">
+<dom-module id="ct-builder">
<template>
<ct-user-prefs id="userPrefs"></ct-user-prefs>
- <a target="{{ $.userPrefs.values.linkTarget }}" href="{{ {url: builder.buildUrl, useUber: $.userPrefs.values.useUberchromegw} | rewriteUrl }}" style="white-space: nowrap">{{ builder.builder }}</a>
+ <a target="{{ $.userPrefs.values.linkTarget }}" style="white-space: nowrap" href$="{{computeHref($, builder)}}">{{ builder.builder }}</a>
</template>
<script>
- Polymer({
- rewriteUrl: function(props) {
- if (this.$ && this.$.userPrefs) {
- return this.$.userPrefs.rewriteUrl(props.url);
+ Polymer({
+ is: 'ct-builder',
+ properties: { builder: { notify: true } },
+ rewriteUrl: function (props) {
+ if (this.$ && this.$.userPrefs) {
+ return this.$.userPrefs.rewriteUrl(props.url);
+ }
+ return props.url;
+ },
+ computeHref: function ($, builder) {
+ return this.rewriteUrl({
+ url: builder.buildUrl,
+ useUber: $.userPrefs.values.useUberchromegw
+ });
}
- return props.url;
- },
- });
+ });
</script>
-</polymer-element>
+</dom-module>
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-build-failure-ext.html ('k') | appengine/sheriff_o_matic/ui/ct-builder-failure-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698