1 <link href=
"chrome://resources/polymer/v1_0/polymer/polymer.html" rel=
"import">
2 <link href=
"chrome://resources/polymer/v1_0/paper-material/paper-material.html" rel=
"import">
3 <link href=
"chrome://resources/polymer/v1_0/paper-button/paper-button.html" rel=
"import">
4 <link href=
"chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html" rel=
"import">
5 <link href=
"chrome://resources/polymer/v1_0/iron-icon/iron-icon.html" rel=
"import">
6 <link href=
"chrome://resources/polymer/v1_0/iron-icons/iron-icons.html" rel=
"import">
7 <link href=
"chrome://resources/polymer/v1_0/iron-icons/notification-icons.html" rel=
"import">
8 <link href=
"device-list.html" rel=
"import">
10 <dom-module id=
"local-state">
13 background-color: white;
25 margin:
24px
16px
0 16px;
45 margin:
16px
16px
0 0;
58 iron-icon[error-icon] {
64 <div id=
"card-row" class=
"layout horizontal">
66 <!-- CryptAuth Enrollment Info Card -->
67 <paper-material id=
"enrollment-card" class=
"layout vertical flex">
68 <div class=
"layout horizontal">
69 <div class=
"card-content layout vertical flex">
70 <div class=
"card-title">Enrollment
</div>
71 <div class=
"card-subtitle">
73 getLastSyncTimeString_(enrollmentState_,
"Never enrolled")
76 <div class=
"next-refresh layout horizontal center flex">
77 <iron-icon class=
"next-sync-icon"
78 icon=
"[[getNextSyncIcon_(enrollmentState_)]]">
80 <span>[[getNextEnrollmentString_(enrollmentState_)]]
</span>
83 <iron-icon class=
"card-icon"
84 icon=
"[[getIconForSuccess_(enrollmentState_)]]"
85 error-icon$=
"[[enrollmentState_.recoveringFromFailure]]">
88 <paper-button class=
"self-start" on-click=
"forceEnrollment_">
93 <!-- Device Sync Info Card -->
94 <paper-material id=
"device-card" class=
"layout vertical flex">
95 <div class=
"layout horizontal flex">
96 <div class=
"card-content layout vertical flex">
97 <div class=
"card-title">Device Sync
</div>
98 <div class=
"card-subtitle">
100 getLastSyncTimeString_(deviceSyncState_,
"Never synced")]]
103 <div class=
"layout horizontal center flex">
104 <iron-icon class=
"next-sync-icon"
105 icon=
"[[getNextSyncIcon_(deviceSyncState_)]]">
107 <span>[[getNextEnrollmentString_(deviceSyncState_)]]
</span>
110 <iron-icon class=
"card-icon"
111 icon=
"[[getIconForSuccess_(deviceSyncState_)]]"
112 error-icon$=
"[[deviceSyncState_.recoveringFromFailure]]">
115 <paper-button class=
"self-start" on-click=
"forceDeviceSync_">
121 <device-list label=
"Unlock Keys" devices=
"[[unlockKeys_]]"></device-list>
123 <script src=
"local-state.js"></script>