OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
3 <link rel="import" href="/controls/controlled_button.html"> | 3 <link rel="import" href="/controls/controlled_button.html"> |
4 <link rel="import" href="/controls/settings_checkbox.html"> | 4 <link rel="import" href="/controls/settings_checkbox.html"> |
5 <link rel="import" href="/settings_shared_css.html"> | 5 <link rel="import" href="/settings_shared_css.html"> |
6 | 6 |
7 <dom-module id="settings-downloads-page"> | 7 <dom-module id="settings-downloads-page"> |
8 <template> | 8 <template> |
9 <style include="settings-shared"></style> | 9 <style include="settings-shared"></style> |
10 <div class="settings-box first two-line"> | 10 <div class="settings-box first two-line"> |
11 <div class="start"> | 11 <div class="start"> |
12 <div>$i18n{downloadLocation}</div> | 12 <div>$i18n{downloadLocation}</div> |
13 <div class="secondary"> | 13 <div class="secondary"> |
14 <if expr="not chromeos"> | 14 <if expr="not chromeos"> |
15 [[prefs.download.default_directory.value]] | 15 [[prefs.download.default_directory.value]] |
16 </if> | 16 </if> |
17 <if expr="chromeos"> | 17 <if expr="chromeos"> |
18 [[getDownloadLocation_(prefs.download.default_directory.value)]] | 18 [[getDownloadLocation_(prefs.download.default_directory.value)]] |
19 </if> | 19 </if> |
20 </div> | 20 </div> |
21 </div> | 21 </div> |
22 <div class="secondary-action"> | 22 <div class="secondary-action"> |
23 <controlled-button class="secondary-button" id="changeDownloadsPath" | 23 <controlled-button class="secondary-button" id="changeDownloadsPath" |
24 on-tap="selectDownloadLocation_" | 24 on-tap="selectDownloadLocation_" |
25 pref="[[prefs.download.default_directory]]"> | 25 pref="[[prefs.download.default_directory]]" |
| 26 end-justified> |
26 $i18n{changeDownloadLocation} | 27 $i18n{changeDownloadLocation} |
27 </controlled-button> | 28 </controlled-button> |
28 </div> | 29 </div> |
29 </div> | 30 </div> |
30 <div class="settings-box block"> | 31 <div class="settings-box block"> |
31 <settings-checkbox pref="{{prefs.download.prompt_for_download}}" | 32 <settings-checkbox pref="{{prefs.download.prompt_for_download}}" |
32 label="$i18n{promptForDownload}"> | 33 label="$i18n{promptForDownload}"> |
33 </settings-checkbox> | 34 </settings-checkbox> |
34 <if expr="chromeos"> | 35 <if expr="chromeos"> |
35 <settings-checkbox pref="{{prefs.gdata.disabled}}" | 36 <settings-checkbox pref="{{prefs.gdata.disabled}}" |
36 label="$i18n{disconnectGoogleDriveAccount}" | 37 label="$i18n{disconnectGoogleDriveAccount}" |
37 hidden="[[!pageVisibility.googleDrive]]"> | 38 hidden="[[!pageVisibility.googleDrive]]"> |
38 </settings-checkbox> | 39 </settings-checkbox> |
39 </if> | 40 </if> |
40 </div> | 41 </div> |
41 </template> | 42 </template> |
42 <script src="downloads_page.js"></script> | 43 <script src="downloads_page.js"></script> |
43 </dom-module> | 44 </dom-module> |
OLD | NEW |