forked from cnodejs/nodeclub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (27 loc) · 767 Bytes
/
index.html
File metadata and controls
28 lines (27 loc) · 767 Bytes
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
<%- partial('sidebar') %>
<div id="content">
<div class="panel">
<div class="header">
<% [['all', '全部'], ['good', '精华']].concat(tabs).forEach(function (pair) {
var value = pair[0];
var text = pair[1]; %>
<a href="<%= value ? '/?tab=' + value : '/' %>"
class="topic-tab <%= value === tab ? 'current-tab' : '' %>"><%= text %></a>
<% }) %>
</div>
<% if (typeof(topics) !== 'undefined' && topics.length > 0) { %>
<div class="inner no-padding">
<%- partial('topic/list', {
topics: topics,
pages: pages,
current_page: current_page,
base: '/'
}) %>
</div>
<% } else { %>
<div class="inner">
<p>无话题</p>
</div>
<% } %>
</div>
</div>