Index: components/proximity_auth/webui/resources/local-state.html |
diff --git a/components/proximity_auth/webui/resources/local-state.html b/components/proximity_auth/webui/resources/local-state.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a01baa9a28b2ab0fc4d4b1486d88ac3b6106e081 |
--- /dev/null |
+++ b/components/proximity_auth/webui/resources/local-state.html |
@@ -0,0 +1,116 @@ |
+<link href="chrome://resources/polymer/polymer/polymer.html" rel="import"> |
+<link href="chrome://resources/polymer/paper-shadow/paper-shadow.html" rel="import"> |
+<link href="chrome://resources/polymer/paper-button/paper-button.html" rel="import"> |
+<link href="chrome://resources/polymer/paper-icon-button/paper-icon-button.html" rel="import"> |
+<link href="chrome://resources/polymer/core-icon/core-icon.html" rel="import"> |
+<link href="chrome://resources/polymer/core-icons/notification-icons.html" rel="import"> |
+<link rel="import" href="device-list.html"> |
+ |
+<polymer-element name="local-state" layout vertical> |
+ <template> |
+ <style> |
+ paper-shadow { |
+ background-color: #ffffff; |
+ } |
+ |
+ #card-row { |
+ margin-top: 22px; |
+ } |
+ |
+ #enrollment-card { |
+ margin-right: 30px; |
+ } |
+ |
+ .card-content { |
+ margin: 24px 16px 0px 16px; |
+ } |
+ |
+ .card-title { |
+ font-size: 20px; |
+ } |
+ |
+ .card-subtitle { |
+ font-size: 14px; |
+ color: #767676; |
+ margin-bottom: 16px; |
+ } |
+ |
+ paper-button { |
+ margin: 8px; |
+ } |
+ |
+ .card-icon { |
+ margin: 16px 16px 0 0; |
+ width: 90px; |
+ height: 90px; |
+ color: green; |
+ } |
+ |
+ .next-sync-icon { |
+ margin-right: 4px; |
+ color: green; |
+ } |
+ |
+ .error-icon { |
+ color: orange; |
+ } |
+ </style> |
+ |
+ <div id='card-row' layout horizontal> |
+ |
+ <!-- CryptAuth Enrollment Info Card --> |
+ <paper-shadow id='enrollment-card' layout vertical flex> |
+ <div layout horizontal> |
+ <div class='card-content' flex layout vertical> |
+ <div class='card-title'>Enrollment</div> |
+ <div class='card-subtitle'> |
+ {{ enrollmentInfo.lastSuccessTime || "Never enrolled" }} |
+ </div> |
+ <div class layout horizontal center flex> |
+ <core-icon class='next-sync-icon error-icon' icon='schedule'> |
+ </core-icon> |
+ {{enrollmentInfo.nextRefreshTime}} to refresh |
+ </div> |
+ </div> |
+ <core-icon |
+ class='card-icon {{ |
michaelpg
2015/04/28 04:00:49
nit: 4-space indent here and below
Tim Song
2015/04/28 19:41:33
Done.
|
+ { "error-icon": enrollmentInfo.lastAttemptFailed } | tokenList |
+ }}' |
+ icon='{{ |
+ enrollmentInfo.lastAttemptFailed ? "error" : "cloud-done" |
+ }}'> |
+ </core-icon> |
+ </div> |
+ <paper-button self-start>Force Enroll</paper-button> |
+ </paper-shadow> |
+ |
+ <!-- Device Sync Info Card --> |
+ <paper-shadow id='device-card' layout vertical flex> |
+ <div layout horizontal flex> |
+ <div class='card-content' flex layout vertical> |
+ <div class='card-title'>Device Sync</div> |
+ <div class='card-subtitle'> |
+ {{ deviceSyncInfo.lastSuccessTime || "Never synced" }} |
+ </div> |
+ <div class layout horizontal center flex> |
+ <core-icon class='next-sync-icon' icon='schedule'></core-icon> |
+ {{ deviceSyncInfo.nextRefreshTime }} to refresh |
+ </div> |
+ </div> |
+ <core-icon |
+ class='card-icon {{ |
+ { "error-icon": deviceSyncInfo.lastAttemptFailed } | tokenList |
+ }}' |
+ icon='{{ |
+ deviceSyncInfo.lastAttemptFailed ? "error" : "cloud-done" |
+ }}'> |
+ </core-icon> |
+ </div> |
+ <paper-button self-start>Force Sync</paper-button> |
+ </paper-shadow> |
+ </div> |
+ |
+ <device-list label='Unlock Keys' devices="{{unlockKeys}}"></device-list> |
+ </template> |
+ <script src="local-state.js"></script> |
+</polymer-element> |