| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial
og.html"> | |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 4 <link rel="import" href="chrome://md-settings/settings_dialog_css.html"> | 3 <link rel="import" href="chrome://md-settings/settings_dialog.html"> |
| 5 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> | 4 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> |
| 6 | 5 |
| 7 <dom-module id="settings-startup-urls-page"> | 6 <dom-module id="settings-startup-urls-page"> |
| 8 <link rel="import" type="css" href="on_startup_shared.css"> | 7 <link rel="import" type="css" href="on_startup_shared.css"> |
| 9 <template> | 8 <template> |
| 10 <style include="settings-dialog"></style> | 9 <style include="settings-dialog"></style> |
| 11 <style include="settings-shared"></style> | 10 <style include="settings-shared"></style> |
| 12 <div class="list-frame vertical-list"> | 11 <div class="list-frame vertical-list"> |
| 13 <template is="dom-repeat" items="[[startupPages_]]"> | 12 <template is="dom-repeat" items="[[startupPages_]]"> |
| 14 <div class="list-item"> | 13 <div class="list-item"> |
| 15 <iron-icon class="secondary" icon="image:brightness-1" | 14 <iron-icon class="secondary" icon="image:brightness-1" |
| 16 item-icon></iron-icon> | 15 item-icon></iron-icon> |
| 17 <div class="middle"> | 16 <div class="middle"> |
| 18 <div class="text-elide">[[item.title]]</div> | 17 <div class="text-elide">[[item.title]]</div> |
| 19 <div class="text-elide secondary">[[item.url]]</div> | 18 <div class="text-elide secondary">[[item.url]]</div> |
| 20 </div> | 19 </div> |
| 21 <iron-icon on-tap="onRemoveUrlTap_" icon="clear"></iron-icon> | 20 <iron-icon on-tap="onRemoveUrlTap_" icon="clear"></iron-icon> |
| 22 </div> | 21 </div> |
| 23 </template> | 22 </template> |
| 24 <div class="list-item list-button" on-tap="onAddPageTap_" | 23 <div class="list-item list-button" on-tap="onAddPageTap_" |
| 25 i18n-content="onStartupAddNewPage"> | 24 i18n-content="onStartupAddNewPage"> |
| 26 </div> | 25 </div> |
| 27 <div class="list-item list-button" on-tap="onUseCurrentPagesTap_" | 26 <div class="list-item list-button" on-tap="onUseCurrentPagesTap_" |
| 28 i18n-content="onStartupUseCurrent"> | 27 i18n-content="onStartupUseCurrent"> |
| 29 </div> | 28 </div> |
| 30 </div> | 29 </div> |
| 31 | 30 |
| 32 <paper-dialog modal id="addUrlDialog" class="layout vertical"> | 31 <settings-dialog id="addUrlDialog"> |
| 33 <div id="dialog-content"> | 32 <div class="title" i18n-content="onStartupAddNewPage"></div> |
| 34 <div class="top-row"> | 33 <div class="body"> |
| 35 <div class="title" i18n-content="onStartupAddNewPage"></div> | 34 <paper-input class="flex" always-float-label |
| 36 <paper-icon-button icon="clear" on-tap="onCancelTap_" id="close"> | 35 i18n-values="label:onStartupSiteUrl" value="{{newUrl}}"> |
| 37 </paper-icon-button> | 36 </paper-input> |
| 38 </div> | 37 </div> |
| 39 <div class="body"> | 38 <div class="button-container"> |
| 40 <div class="explanation"> | 39 <div class="action-buttons"> |
| 41 <paper-input class="flex" always-float-label | 40 <paper-button class="cancel-button" on-tap="onCancelTap_" |
| 42 i18n-values="label:onStartupSiteUrl" value="{{newUrl}}"> | 41 id="cancel" i18n-content="cancel"></paper-button> |
| 43 </paper-input> | 42 <!-- TODO(dbeam): this button should be [disabled] when |newUrl| |
| 44 </div> | 43 is empty. --> |
| 45 <div class="button-container"> | 44 <paper-button class="action-button" on-tap="onOkTap_" |
| 46 <div class="action-buttons"> | 45 id="addUrlButton" i18n-content="add"></paper-button> |
| 47 <paper-button class="cancel-button" on-tap="onCancelTap_" | |
| 48 id="cancel" i18n-content="cancel"></paper-button> | |
| 49 <!-- TODO(dbeam): this button should be [disabled] when |newUrl| | |
| 50 is empty. --> | |
| 51 <paper-button class="action-button" on-tap="onOkTap_" | |
| 52 id="addUrlButton" i18n-content="add"></paper-button> | |
| 53 </div> | |
| 54 </div> | |
| 55 </div> | 46 </div> |
| 56 </div> | 47 </div> |
| 57 </paper-dialog> | 48 </settings-dialog> |
| 58 | |
| 59 </template> | 49 </template> |
| 60 <script src="startup_urls_page.js"></script> | 50 <script src="startup_urls_page.js"></script> |
| 61 </dom-module> | 51 </dom-module> |
| OLD | NEW |