|
1 | | -header.row.account-header.load( |
2 | | - ng-show = "data.activeAccount" |
| 1 | +ol.accounts-group( |
| 2 | + ng-class = "{ \ |
| 3 | + in: isChangeAccount \ |
| 4 | + }" |
| 5 | + ng-click = "isChangeAccount = !isChangeAccount; \ |
| 6 | + $event.stopPropagation();" |
3 | 7 | ) |
4 | | - ol.accounts-group( |
5 | | - ng-class = "{ \ |
6 | | - in: isChangeAccount \ |
7 | | - }" |
8 | | - ng-click = "isChangeAccount = !isChangeAccount; \ |
9 | | - $event.stopPropagation();" |
10 | | - ) |
11 | | - li.accounts-group-item |
12 | | - a.account.load( |
13 | | - ng-show = "data.activeAccount.gravitar()" |
14 | | - ) |
15 | | - img.gravatar( |
16 | | - height = "24" |
17 | | - ng-src = "{{ data.activeAccount.gravitar() }}" |
18 | | - width = "24" |
19 | | - ) |
20 | | - span.account-name.text-overflow {{ data.activeAccount.oauthName() }} |
21 | | - //- icons-arrow-down only for first account |
22 | | - svg.iconnables.icons-arrow-down |
23 | | - use( |
24 | | - xlink:href = "#icons-arrow-down" |
25 | | - ) |
26 | | - //- current user (if user is not active) |
27 | | - li.accounts-group-item( |
28 | | - ng-if = "data.user !== data.activeAccount" |
29 | | - ng-click = "$event.stopPropagation(); \ |
30 | | - selectActiveAccount(data.user)" |
31 | | - ) |
32 | | - a.account |
33 | | - img.gravatar( |
34 | | - height = "24" |
35 | | - ng-src = "{{ data.user.gravitar() }}" |
36 | | - width = "24" |
37 | | - ) |
38 | | - span.account-name.text-overflow {{ data.user.oauthName() }} |
39 | | - //- Orgs that are not the active account |
40 | | - li.accounts-group-item( |
41 | | - ng-click = "$event.stopPropagation(); \ |
42 | | - selectActiveAccount(org)" |
43 | | - ng-if = "org !== data.activeAccount" |
44 | | - ng-repeat = "org in data.orgs.models" |
| 8 | + li.accounts-group-item |
| 9 | + a.account.load( |
| 10 | + ng-show = "data.activeAccount.gravitar()" |
45 | 11 | ) |
46 | | - a.account |
47 | | - img.gravatar( |
48 | | - height = "24" |
49 | | - ng-src = "{{ org.gravitar() }}" |
50 | | - width = "24" |
| 12 | + img.gravatar( |
| 13 | + height = "24" |
| 14 | + ng-src = "{{ data.activeAccount.gravitar() }}" |
| 15 | + width = "24" |
| 16 | + ) |
| 17 | + span.account-name.text-overflow {{ data.activeAccount.oauthName() }} |
| 18 | + //- icons-arrow-down only for first account |
| 19 | + svg.iconnables.icons-arrow-down |
| 20 | + use( |
| 21 | + xlink:href = "#icons-arrow-down" |
51 | 22 | ) |
52 | | - span.account-name.text-overflow {{ org.oauthName() }} |
| 23 | + //- current user (if user is not active) |
| 24 | + li.accounts-group-item( |
| 25 | + ng-if = "data.user !== data.activeAccount" |
| 26 | + ng-click = "$event.stopPropagation(); \ |
| 27 | + selectActiveAccount(data.user)" |
| 28 | + ) |
| 29 | + a.account |
| 30 | + img.gravatar( |
| 31 | + height = "24" |
| 32 | + ng-src = "{{ data.user.gravitar() }}" |
| 33 | + width = "24" |
| 34 | + ) |
| 35 | + span.account-name.text-overflow {{ data.user.oauthName() }} |
| 36 | + //- Orgs that are not the active account |
| 37 | + li.accounts-group-item( |
| 38 | + ng-click = "$event.stopPropagation(); \ |
| 39 | + selectActiveAccount(org)" |
| 40 | + ng-if = "org !== data.activeAccount" |
| 41 | + ng-repeat = "org in data.orgs.models" |
| 42 | + ) |
| 43 | + a.account |
| 44 | + img.gravatar( |
| 45 | + height = "24" |
| 46 | + ng-src = "{{ org.gravitar() }}" |
| 47 | + width = "24" |
| 48 | + ) |
| 49 | + span.account-name.text-overflow {{ org.oauthName() }} |
0 commit comments