This repository has been archived by the owner on May 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsearch_results.html
103 lines (98 loc) · 3.25 KB
/
search_results.html
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<div class="container-divider"></div>
<div class="container">
<nav class="sub-nav">
{{breadcrumbs}}
{{search submit=false}}
</nav>
<header class="page-header">
<h1>{{t 'search_results'}}</h1>
<p class="page-header-description">{{t 'results' query=query count=results_count}}</p>
</header>
<div class="search-results">
<section class="search-results-column">
<h3 class="search-results-subheading">
{{t 'knowledge_base'}}
</h3>
{{#if article_results}}
<ul class="search-results-list">
{{#each article_results}}
<li class="search-result">
<a href="{{url}}" class="search-result-link">{{title}}</a>
{{#if vote_sum}}
<span class="search-result-votes meta-count">{{vote_sum}}</span>
{{/if}}
<ul class="meta-group">
<li>
<ol class="breadcrumbs search-result-breadcrumbs">
{{#each path_steps}}
<li title="{{name}}"><a href="{{url}}">{{name}}</a></li>
{{/each}}
</ol>
</li>
<li class="meta-data">
{{#link 'user_profile' id=author.id}}
{{author.name}}
{{/link}}
</li>
<li class="meta-data">{{date created_at timeago=true}}</li>
</ul>
<div class="search-result-description">{{text}}</div>
</li>
{{/each}}
</ul>
{{else}}
<p>
{{t 'no_results' query=query}}
{{#link 'help_center'}}
{{t 'browse_knowledge_base'}}
{{/link}}
</p>
{{/if}}
</section>
{{#if help_center.community_enabled}}
<section class="search-results-column">
<h3 class="search-results-subheading">
{{t 'community'}}
</h3>
{{#if post_results}}
<ul class="search-results-list">
{{#each post_results}}
<li class="search-result">
<a href="{{url}}" class="search-result-link">{{title}}</a>
<span class="search-result-meta-count">
{{comment_count}}
</span>
<ul class="meta-group">
<li>
<ol class="breadcrumbs search-result-breadcrumbs">
{{#each path_steps}}
<li title="{{name}}"><a href="{{url}}">{{name}}</a></li>
{{/each}}
</ol>
</li>
<li class="meta-data">
{{#link 'user_profile' id=author.id}}
{{author.name}}
{{/link}}
</li>
<li class="meta-data">{{date created_at timeago=true}}</li>
</ul>
<div class="search-result-description">
{{text}}
</div>
</li>
{{/each}}
</ul>
{{else}}
<p>
{{t 'no_results' query=query}}
{{#link 'topics'}}
{{t 'browse_community'}}
{{/link}}
</p>
{{/if}}
</section>
{{/if}}
</div>
{{pagination}}
</div>