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