forked from ipt-associates/zendesk-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommunity_topic_list_page.hbs
87 lines (78 loc) · 2.44 KB
/
community_topic_list_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
<section class="section hero community-hero">
<div class="hero-inner">
{{search submit=false class='search search-full' scoped=settings.scoped_community_search}}
</div>
</section>
<div class="container">
<nav class="sub-nav">
{{breadcrumbs}}
</nav>
<header class="page-header community-header">
<h4>
<span class="dropdown">
<button class="dropdown-toggle" aria-haspopup="true">
{{t 'community_topics'}}
</button>
<span class="dropdown-menu" role="menu">
{{#link 'topics' role='menuitem' selected='true'}}
{{t 'show_topics'}}
{{/link}}
{{#link 'posts' role='menuitem'}}
{{t 'show_all_posts'}}
{{/link}}
</span>
</span>
</h4>
<span class="post-to-community">
{{link 'new_post' role='button' class='button-large'}}
</span>
</header>
{{#unless topics}}
<p>{{t 'no_content'}}</p>
{{/unless}}
<div class="blocks topics">
<ul class="blocks-list topics-list">
{{#each topics}}
<li class="blocks-item topics-item {{#if internal}}blocks-item-internal{{/if}}">
<a href="{{url}}" class="blocks-item-link">
<h4 class="blocks-item-title">
{{name}}
{{#if internal}}
<span class="icon-lock" title="{{t 'internal'}}"></span>
{{/if}}
</h4>
<p class="blocks-item-description">{{excerpt description}}</p>
<ul class="meta-group">
<li class="meta-data">{{t 'post_count' count=post_count}}</li>
<li class="meta-data">{{t 'follower_count' count=follower_count}}</li>
</ul>
</a>
</li>
{{/each}}
</ul>
</div>
{{pagination}}
{{#if featured_posts}}
<section class="section community-featured-posts">
<h3>{{t 'featured_posts'}}</h3>
<ul class="promoted-articles">
{{#each featured_posts}}
<li class="promoted-articles-item">
<a href="{{url}}">
{{title}}
</a>
</li>
{{/each}}
</ul>
</section>
{{/if}}
<section class="community-activity activity">
{{#if help_center.community_enabled}}
{{recent_activity scope='community'}}
{{/if}}
</section>
<section class="container community-footer">
<h4>{{t 'suggest_new_post'}}</h4>
{{link 'new_post' role='button' class='button-large'}}
</section>
</div>