OLD | NEW |
1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial
og.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial
og.html"> |
7 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> | 8 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> |
8 <link rel="import" href="chrome://md-settings/people_page/sync_page.html"> | 9 <link rel="import" href="chrome://md-settings/people_page/sync_page.html"> |
9 <link rel="import" href="chrome://md-settings/people_page/sync_private_api.html"
> | 10 <link rel="import" href="chrome://md-settings/people_page/sync_private_api.html"
> |
10 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa
ges.html"> | 11 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa
ges.html"> |
11 <link rel="import" href="chrome://md-settings/settings_page/settings_subheader.h
tml"> | 12 <link rel="import" href="chrome://md-settings/settings_page/settings_subheader.h
tml"> |
12 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> | 13 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 <template is="dom-if" if="[[syncStatus.signedIn]]"> | 52 <template is="dom-if" if="[[syncStatus.signedIn]]"> |
52 <span class="secondary-action"> | 53 <span class="secondary-action"> |
53 <paper-button class="secondary-button" on-tap="onDisconnectTap_" | 54 <paper-button class="secondary-button" on-tap="onDisconnectTap_" |
54 disabled="[[syncStatus.setupInProgress]]"> | 55 disabled="[[syncStatus.setupInProgress]]"> |
55 [[i18n('syncDisconnect')]] | 56 [[i18n('syncDisconnect')]] |
56 </paper-button> | 57 </paper-button> |
57 </span> | 58 </span> |
58 </template> | 59 </template> |
59 </if> | 60 </if> |
60 </div> | 61 </div> |
61 <div class="settings-box first two-line" | 62 <div class="settings-box two-line" hidden="[[syncStatus.signedIn]]"> |
62 hidden="[[syncStatus.signedIn]]"> | |
63 [[i18n('syncOverview')]] | 63 [[i18n('syncOverview')]] |
64 </div> | 64 </div> |
65 | 65 |
66 <div class="settings-box" | 66 <div class="settings-box" hidden="[[!isStatusTextSet_(syncStatus)]]"> |
67 hidden="[[!isStatusTextSet_(syncStatus)]]"> | |
68 <span id="syncStatusText"></span> | 67 <span id="syncStatusText"></span> |
69 <paper-button on-tap="onActionLinkTap_"> | 68 <paper-button on-tap="onActionLinkTap_"> |
70 [[syncStatus.actionLinkText]] | 69 [[syncStatus.actionLinkText]] |
71 </paper-button> | 70 </paper-button> |
72 </div> | 71 </div> |
73 | 72 |
74 <template is="dom-if" | 73 <template is="dom-if" |
75 if="[[isAdvancedSyncSettingsVisible_(syncStatus)]]"> | 74 if="[[isAdvancedSyncSettingsVisible_(syncStatus)]]"> |
76 <div class="settings-box"> | 75 <div class="settings-box"> |
77 <paper-button on-tap="onSyncTap_" class="primary-button"> | 76 <paper-button on-tap="onSyncTap_" class="primary-button"> |
78 [[i18n('syncPageTitle')]] | 77 [[i18n('syncPageTitle')]] |
79 </paper-button> | 78 </paper-button> |
80 </div> | 79 </div> |
81 </template> | 80 </template> |
82 | 81 |
83 <if expr="chromeos"> | 82 <if expr="chromeos"> |
84 <div class="settings-box"> | 83 <div class="settings-box"> |
85 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}" | 84 <settings-checkbox pref="{{prefs.settings.enable_screen_lock}}" |
86 i18n-values="label:enableScreenlock"> | 85 i18n-values="label:enableScreenlock"> |
87 </settings-checkbox> | 86 </settings-checkbox> |
88 </div> | 87 </div> |
| 88 |
| 89 <template is="dom-if" if=[[easyUnlockAllowed_]]> |
| 90 <div class="settings-box"> |
| 91 <div class="middle"> |
| 92 <div>[[i18n('easyUnlockSectionTitle')]]</div> |
| 93 <div class="secondary"> |
| 94 <template is="dom-if" if=[[!easyUnlockEnabled_]]> |
| 95 [[i18n('easyUnlockSetupIntro')]] |
| 96 </template> |
| 97 <template is="dom-if" if=[[easyUnlockEnabled_]]> |
| 98 [[i18n('easyUnlockDescription')]] |
| 99 </template> |
| 100 <a target="_blank" href$="[[i18n('easyUnlockLearnMoreURL')]]"> |
| 101 [[i18n('learnMore')]] |
| 102 </a> |
| 103 </div> |
| 104 </div> |
| 105 <div class="secondary-action"> |
| 106 <!-- TODO(tommycli): Hook up these buttons to actions. --> |
| 107 <template is="dom-if" if=[[!easyUnlockEnabled_]]> |
| 108 <paper-button class="secondary-button"> |
| 109 [[i18n('easyUnlockSetupButton')]] |
| 110 </paper-button> |
| 111 </template> |
| 112 <template is="dom-if" if=[[easyUnlockEnabled_]]> |
| 113 <paper-button class="secondary-button"> |
| 114 [[i18n('easyUnlockTurnOffButton')]] |
| 115 </paper-button> |
| 116 </template> |
| 117 </div> |
| 118 </div> |
| 119 </template> |
89 </if> | 120 </if> |
90 | 121 |
91 <div class="settings-box"> | 122 <div class="settings-box"> |
92 <paper-button class="primary-button" i18n-content="manageOtherPeople" | 123 <paper-button class="primary-button" i18n-content="manageOtherPeople" |
93 on-tap="onManageOtherPeople_"> | 124 on-tap="onManageOtherPeople_"> |
94 </paper-button> | 125 </paper-button> |
95 </div> | 126 </div> |
96 </neon-animatable> | 127 </neon-animatable> |
97 <neon-animatable id="sync"> | 128 <neon-animatable id="sync"> |
98 <settings-subheader i18n-values="page-title:syncPageTitle"> | 129 <settings-subheader i18n-values="page-title:syncPageTitle"> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 <paper-button dialog-dismiss i18n-content="cancel"> | 166 <paper-button dialog-dismiss i18n-content="cancel"> |
136 </paper-button> | 167 </paper-button> |
137 <paper-button dialog-confirm class="action-button" | 168 <paper-button dialog-confirm class="action-button" |
138 on-tap="onDisconnectConfirm_" i18n-content="syncDisconnectConfirm"> | 169 on-tap="onDisconnectConfirm_" i18n-content="syncDisconnectConfirm"> |
139 </paper-button> | 170 </paper-button> |
140 </div> | 171 </div> |
141 </paper-dialog> | 172 </paper-dialog> |
142 </template> | 173 </template> |
143 <script src="people_page.js"></script> | 174 <script src="people_page.js"></script> |
144 </dom-module> | 175 </dom-module> |
OLD | NEW |