forked from evoko/zendesk-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscriptions_page.hbs
88 lines (84 loc) · 2.93 KB
/
subscriptions_page.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<div class="my-activities-nav">
<div class="container">
<nav class="collapsible-nav">
<button type="button" class="collapsible-nav-toggle" aria-label="{{t 'toggle_navigation'}}" aria-expanded="false">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" focusable="false" viewBox="0 0 12 12"
aria-hidden="true" class="collapsible-nav-toggle-icon chevron-icon">
<path fill="none" stroke="currentColor" stroke-linecap="round" d="M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" focusable="false" viewBox="0 0 12 12"
aria-hidden="true" class="collapsible-nav-toggle-icon x-icon">
<path stroke="currentColor" stroke-linecap="round" d="M3 9l6-6m0 6L3 3" />
</svg>
</button>
<ul class="collapsible-nav-list">
{{#if help_center.request_management_enabled}}
<li>{{link 'requests'}}</li>
{{/if}}
<li>{{link 'contributions'}}</li>
<li class="current">
<a href="{{page_path 'following'}}" aria-current="page">{{ t 'following' }}</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="container container-spacing">
<header class="my-activities-header">
<h1>{{t 'following'}}</h1>
</header>
<div class="my-activities-following-header">
<span class="dropdown">
<button class="dropdown-toggle" aria-haspopup="true">
{{current_filter.label}}
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12"
class="dropdown-chevron-icon">
<path fill="none" stroke="currentColor" stroke-linecap="round" d="M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5" />
</svg>
</button>
<span class="dropdown-menu" role="menu">
{{#each filters}}
<a href="{{url}}" aria-selected="{{selected}}" role="menuitem">
{{name}}
</a>
{{/each}}
</span>
</span>
</div>
<div id="main-content" class="requests">
{{#if subscriptions}}
<table class="table my-activities-table subscriptions-table">
<thead>
<tr>
<th>{{t 'title'}}</th>
<th>{{t 'type'}}</th>
<th>{{t 'subscription'}}</th>
<th></th>
</tr>
</thead>
<tbody>
{{#each subscriptions}}
<tr>
<td>
{{#is type 'user'}}
<img class="user-avatar" src="{{avatar_url}}" alt="">
{{/is}}
<a href="{{url}}" title="{{title}}" class="striped-list-title">
{{excerpt title characters=60}}
</a>
</td>
<td>{{name}}</td>
<td>{{following}}</td>
<td class="subscriptions-subscribe">
{{subscribe}}
</td>
</tr>
{{/each}}
</tbody>
</table>
{{pagination}}
{{else}}
<p class="no-activities">{{t 'not_following'}}</p>
{{/if}}
</div>
</div>