| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 5 <link rel="import" href="../route.html"> | 6 <link rel="import" href="../route.html"> |
| 6 <link rel="import" href="../settings_shared_css.html"> | 7 <link rel="import" href="../settings_shared_css.html"> |
| 7 | 8 |
| 8 <dom-module id="settings-user-list"> | 9 <dom-module id="settings-user-list"> |
| 9 <template> | 10 <template> |
| 10 <style include="settings-shared"> | 11 <style include="settings-shared"> |
| 11 .user-list { | 12 .user-list { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 30 | 31 |
| 31 .user-info { | 32 .user-info { |
| 32 -webkit-padding-start: 16px; | 33 -webkit-padding-start: 16px; |
| 33 } | 34 } |
| 34 </style> | 35 </style> |
| 35 <div class="user-list"> | 36 <div class="user-list"> |
| 36 <template is="dom-repeat" items="[[users_]]"> | 37 <template is="dom-repeat" items="[[users_]]"> |
| 37 <div class="user layout horizontal center two-line"> | 38 <div class="user layout horizontal center two-line"> |
| 38 <img class="user-icon" src="[[getProfilePictureUrl_(item.name)]]"> | 39 <img class="user-icon" src="[[getProfilePictureUrl_(item.name)]]"> |
| 39 <div class="flex user-info"> | 40 <div class="flex user-info"> |
| 40 <div> | 41 <div>[[getUserName_(item)]]</div> |
| 41 [[item.name]] | |
| 42 <span hidden="[[!item.isOwner]]">$i18n{deviceOwnerLabel}</span> | |
| 43 </div> | |
| 44 <div class="secondary">[[item.email]]</div> | 42 <div class="secondary">[[item.email]]</div> |
| 45 </div> | 43 </div> |
| 46 <paper-icon-button icon="cr:clear" class="clear-icon" | 44 <paper-icon-button icon="cr:clear" class="clear-icon" |
| 47 on-tap="removeUser_" | 45 on-tap="removeUser_" |
| 48 hidden="[[shouldHideCloseButton_(disabled, item.isOwner)]]"> | 46 hidden="[[shouldHideCloseButton_(disabled, item.isOwner)]]"> |
| 49 </paper-icon-button> | 47 </paper-icon-button> |
| 50 </div> | 48 </div> |
| 51 </template> | 49 </template> |
| 52 </div> | 50 </div> |
| 53 </template> | 51 </template> |
| 54 <script src="user_list.js"></script> | 52 <script src="user_list.js"></script> |
| 55 </dom-module> | 53 </dom-module> |
| OLD | NEW |