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

Unified Diff: appengine/config_service/ui/src/config-ui/config-set-card.html

Issue 2991013002: config_service: Added revision and timestamp to config-set-cards and config-set pages (Closed)
Patch Set: Nit: forgot to add launch icon to config set page Created 3 years, 5 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/config_service/ui/src/config-ui/config-set-card.html
diff --git a/appengine/config_service/ui/src/config-ui/config-set-card.html b/appengine/config_service/ui/src/config-ui/config-set-card.html
index 8bff3bc1e0c786cf30efd68aabcce2bb91dd7dd5..aa352f65226ae24d1de250e78732b653e3ad1fdd 100644
--- a/appengine/config_service/ui/src/config-ui/config-set-card.html
+++ b/appengine/config_service/ui/src/config-ui/config-set-card.html
@@ -11,6 +11,7 @@
<link rel="import" href="../../bower_components/iron-icons/maps-icons.html">
<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../../bower_components/paper-tooltip/paper-tooltip.html">
+<link rel="import" href="../../common/common-behaviors.html">
<dom-module id="config-set-card">
<template>
@@ -53,8 +54,17 @@
<a href="#/[[name]]">
<paper-card elevation="2">
<div class="card-content">
- <div class="config-title">[[name]]
+ <div class="config-title">
+ [[name]]
<div class="validation">
+ <iron-icon id="launch"
+ icon="icons:launch"
+ class="paper-grey"
+ on-tap="_openConfig">
Sergey Berezin 2017/07/31 20:21:18 This correctly opens a new window, but also opens
cwpayton 2017/07/31 23:40:53 Done.
+ </iron-icon>
+ <paper-tooltip for="launch" offset="0">
+ [[link]]
+ </paper-tooltip>
<template is="dom-if" if="[[lastImportAttempt]]" restamp="true">
<template is="dom-if" if="[[lastImportAttempt.success]]" restamp="true">
<iron-icon id="successful-import"
@@ -85,6 +95,8 @@
</paper-tooltip>
</template>
</div>
+ <p>Revision: [[revision]]</p>
+ <p>Timestamp: [[timestamp]]</p>
Sergey Berezin 2017/07/31 20:21:18 I'd make this more compact: - Print only the fist
cwpayton 2017/07/31 23:40:53 Done.
</div>
</div>
</paper-card>
@@ -95,20 +107,11 @@
Polymer({
is: "config-set-card",
- properties: {
- name: {
- type: String
- },
-
- lastImportAttempt: {
- type: Object
- },
- },
-
- _not: function(b) {
- return !b;
- },
+ behaviors: [ConfigUIBehaviors.CommonBehavior],
+ _openConfig: function() {
+ window.open(this.link);
+ }
});
</script>
</dom-module>

Powered by Google App Engine
This is Rietveld 408576698