-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforum_index_table.tpl
109 lines (106 loc) · 2.96 KB
/
forum_index_table.tpl
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
104
105
106
107
108
109
<style>
* {
border-radius: 0 !important;
}
* {
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
@border-radius-base: 0px;
@border-radius-large: 0px;
@border-radius-small: 0px;
</style>
<body style="background-color:gray background-attachment: fixed;">
<div class="container">
<div style="background:white" class="well">
<div class="row">
<div class="col-md-9">
{$BREADCRUMBS}
<table class="table table-bordered" style="table-layout:fixed;">
<colgroup>
<col style="width:50%">
<col style="width:10%">
<col style="width:40%">
</colgroup>
<thead>
<tr>
<th>{$FORUM}</th>
<th>{$STATS}</th>
<th>{$LAST_POST}</th>
</tr>
</thead>
<tbody>
{foreach from=$FORUMS item=forum}
<tr>
<td>
<a href="/forum/view_forum/?fid={$forum.forum_id}">{$forum.forum_title}</a>
<br />
{$forum.forum_description}<br />
{$forum.subforums}
</td>
<td>
<strong>{$forum.forum_topics}</strong> {$TOPICS}<br />
<strong>{$forum.forum_posts}</strong> {$POSTS}<br />
</td>
<td>
{if $forum.forum_topics eq 0}
{$NO_TOPICS}
{else}
{* There are topics, display the latest *}
<div class="row">
<div class="col-md-2">
<div class="frame">
<a href="/profile/{$forum.last_reply_mcname}">{$forum.last_reply_avatar}</a>
</div>
</div>
<div class="col-md-9">
<a href="/forum/view_topic/?tid={$forum.last_topic_id}">{$forum.last_topic_name}</a><br />
{$BY} <a href="/profile/{$forum.last_reply_mcname}">{$forum.last_reply_username}</a><br />{$forum.last_topic_time}
</div>
</div>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<div class="panel panel-default">
<div class="panel-heading">{$STATISTICS}</div>
<div class="panel-body">
{$USERS_REGISTERED}<br />{$LATEST_MEMBER}
<hr>
<strong>{$ONLINE_USERS}</strong><br />
{$ONLINE_USERS_LIST}
</div>
</div>
</div>
<div class="col-md-3">
{$SEARCH_FORM}
<br />
<div class="panel panel-default">
<div class="panel-heading">
{$LATEST_POSTS}
</div>
<div class="panel-body">
{foreach from=$postsArray item=post}
<div class="row">
<div class="col-md-3">
<div class="frame">
<a href="/profile/{$post.topic_last_user_mcname}">{$post.topic_last_user_avatar}</a>
</div>
</div>
<div class="col-md-9">
<a href="/forum/view_topic/?tid={$post.topic_id}">{$post.topic_title}</a><br />
{$BY} <a href="/profile/{$post.topic_last_user_mcname}">{$post.topic_last_user_username}</a><br />
<span rel="tooltip" data-trigger="hover" data-original-title="{$post.topic_reply_date}">{$post.topic_reply_rough} {$AGO}</span>
</div>
</div>
<br />
{/foreach}
</div>
</div>
</div>
</div>
</div>
</div>