|
11 | 11 |
|
12 | 12 | ui-select(ng-model='search.query', multiple='', |
13 | 13 | tagging='', tagging-label='false', tagging-tokens='SPACE|ENTER') |
14 | | - ui-select-match(placeholder='Search by Name or Tags...') |
| 14 | + ui-select-match(placeholder='Search by Name or Tags...') |
15 | 15 | i.fa.fa-tag(ng-if='isTag($item)') |
| 16 | + i.fa.fa-filter(ng-if='isAdvanced($item)') |
16 | 17 | span {{ $item }} |
17 | 18 | ui-select-choices(repeat='hint in search.hints | filter:$select.search | limitTo:100') |
18 | 19 | i.fa.fa-tag(ng-if='isTag(hint)') |
| 20 | + i.fa.fa-filter(ng-if='isAdvanced(hint)') |
19 | 21 | span {{ hint }} |
20 | 22 |
|
21 | 23 | section.main-links(ng-show='showSplash') |
|
31 | 33 | a.login(ui-sref='analytics', title='Analytics for Cyclotron') |
32 | 34 | i.fa.fa-bar-chart |
33 | 35 | span Analytics |
34 | | - a.login(requires-auth, ng-click='login()', ng-if='!isLoggedIn()', title='Login') |
| 36 | + a.login(requires-auth, ng-if='!isLoggedIn()', ng-click='login()',title='Login') |
35 | 37 | i.fa.fa-unlock |
36 | 38 | span Login |
37 | | - a.logout(requires-auth, ng-click='logout()', ng-if='isLoggedIn()', title='Logout') |
| 39 | + a.logout(requires-login, ng-click='logout()', title='Logout') |
38 | 40 | i.fa.fa-lock |
39 | 41 | span Logout |
40 | 42 |
|
|
46 | 48 | .no-results.well.well-sm(ng-show='dashboards.length == 0') |
47 | 49 | span No matching Dashboards were found |
48 | 50 |
|
49 | | - table.table |
50 | | - tr.dashboard-item(ng-repeat='dashboard in dashboards | orderBy:"name"', ng-class='{"dashboard-item-unviewable": !dashboard._canView}') |
51 | | - |
| 51 | + table.table(ng-show='dashboards.length > 0') |
| 52 | + thead |
| 53 | + tr |
| 54 | + th(requires-login) |
| 55 | + a(ng-click='sortBy("_liked", true)') |
| 56 | + i.fa.fa-thumbs-up |
| 57 | + th |
| 58 | + a(ng-click='sortBy("name", false)', ng-class='{ selected: sortByField == "name" }') Name |
| 59 | + span / |
| 60 | + a(ng-click='sortBy(tagSorter, false)', ng-class='{ selected: sortByField == tagSorter }') Tags |
| 61 | + span / |
| 62 | + a(ng-click='sortBy("date", true)', ng-class='{ selected: sortByField == "date" }') Last Modified |
| 63 | + th.dashboard-analytics |
| 64 | + a(ng-click='sortBy("visits", true)', ng-class='{ selected: sortByField == "visits" }') Visits |
| 65 | + span(requires-auth) / |
| 66 | + a(requires-auth, ng-click='sortBy("likeCount", true)', ng-class='{ selected: sortByField == "likeCount" }') Likes |
| 67 | + th |
| 68 | + tr.dashboard-item(ng-repeat='dashboard in dashboards | orderBy:sortByField:sortByReverse', |
| 69 | + ng-class='{"dashboard-item-unviewable": !dashboard._canView, "dashboard-item-deleted": dashboard.deleted }') |
| 70 | + td.like(requires-login) |
| 71 | + a(ng-click='toggleLike(dashboard)') |
| 72 | + i.fa.fa-thumbs-up(ng-if='dashboard._liked', title='Unlike this Dashboard') |
| 73 | + i.fa.fa-thumbs-o-up(ng-if='!dashboard._liked', title='Like this Dashboard') |
52 | 74 | td |
| 75 | + span.name(ng-if='dashboard.deleted') {{ dashboard.name }} |
| 76 | + i.fa.fa-trash-o(title="This Dashboard has been deleted.") |
| 77 | + |
53 | 78 | span.name(ng-if='!dashboard._canView') {{ dashboard.name }} |
54 | 79 | i.fa.fa-lock(title="You don't have permission to edit this Dashboard.") |
55 | 80 | i.fa.fa-eye-slash(title="You don't have permission to view this Dashboard.") |
56 | 81 |
|
57 | | - a.name(ng-if='dashboard._canView', ng-href='/{{ dashboard.name }}', target='_blank', title='Open the Dashboard') {{ dashboard.name }} |
| 82 | + a.name(ng-if='dashboard._canView && !dashboard.deleted', ng-href='/{{ dashboard.name }}', target='_blank', title='Open the Dashboard') {{ dashboard.name }} |
58 | 83 | i.fa.fa-lock(ng-if='isLoggedIn() && !dashboard._canEdit', title="You don't have permission to edit this Dashboard.") |
59 | 84 | i.fa.fa-external-link |
60 | 85 |
|
|
74 | 99 | ng-click='selectTag(tag)', title='Add to search') {{ tag }} |
75 | 100 |
|
76 | 101 | td.dashboard-analytics |
77 | | - .info |
78 | | - a.text-muted(ng-if='dashboard.visits > 0', |
79 | | - ui-sref='dashboardAnalytics({ dashboardName: dashboard.name })', title='View Analytics for this Dashboard') |
| 102 | + .info(ng-if='dashboard.visits > 0') |
| 103 | + a(ui-sref='dashboardAnalytics({ dashboardName: dashboard.name })', |
| 104 | + title='View Analytics for this Dashboard') |
80 | 105 | i(class='fa {{ dashboard.visitCategory.icon }}') |
81 | 106 | span {{ dashboard.visitCategory.text }} |
82 | 107 | ng-pluralize(count='dashboard.visits', when='{"one": "visit","other": "visits"}') |
| 108 | + .info(requires-auth, ng-if='dashboard.likeCount > 0') |
| 109 | + i.fa.fa-thumbs-up |
| 110 | + span {{ dashboard.likeCount }} |
| 111 | + ng-pluralize(count='dashboard.likeCount', when='{"one": "like","other": "likes"}') |
83 | 112 |
|
84 | 113 | td.dashboard-links |
85 | 114 | div |
|
0 commit comments