-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathforum.html.twig
More file actions
110 lines (100 loc) · 4.29 KB
/
forum.html.twig
File metadata and controls
110 lines (100 loc) · 4.29 KB
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
110
{% extends '@forum/layout.html.twig' %}
{% block content %}
{{ fireHook('view.forum.start') }}
<div class="linkst">
<div class="inbox crumbsplus">
<ul class="crumbs">
<li><a href="{{ urlBase() }}">{{ trans('Index') }}</a></li>
<li>
<span>» </span>
<strong><a href="{{ pathFor('Forum', {'id': id, 'name': url_forum}) }}">{{ cur_forum.forum_name }}</a></strong>
</li>
</ul>
<div class="pagepost">
<p class="pagelink conl">{{ paging_links|raw }}</p>
{{ post_link|raw }}
</div>
<div class="clearer"></div>
</div>
</div>
<div id="vf" class="blocktable">
<h2><span>{{ cur_forum.forum_name }}</span></h2>
<div class="box">
<div class="inbox">
<table>
<thead>
<tr>
<th class="tcl" scope="col">{{ trans('Topic') }}</th>
<th class="tc2" scope="col">{{ trans('Replies') }}</th>
{% if settings('o_topic_views') == '1' %}
<th class="tc3" scope="col">{{ trans('Views') }}</th>
{% endif %}
<th class="tcr" scope="col">{{ trans('Last post') }}</th>
</tr>
</thead>
<tbody>
{% for topic in forum_data %}
<tr class="{{ topic.item_status }}">
<td class="tcl">
<div class="{{ topic.icon_type }}">
<div class="nosize">
{{ formatNumber( loop.length + start_from ) }}
</div>
</div>
<div class="tclcon">
<div>
{{ topic.subject_formatted|raw }}
</div>
</div>
</td>
<td class="tc2">
{{ topic.moved_to is null ? formatNumber(topic.num_replies) : '-' }}
</td>
{% if settings('o_topic_views') == '1' %}
<td class="tc3">
{{ topic.moved_to is null ? formatNumber(topic.num_views) : '-' }}
</td>
{% endif %}
<td class="tcr">{{ topic.last_post_formatted|raw }}</td>
</tr>
{% endfor %}
{% if forum_data is empty %}
<tr class="rowodd inone">
<td class="tcl" colspan="{{ settings('o_topic_views') == 1 ? 4 : 3 }}">
<div class="icon inone">
<div class="nosize"><!-- --></div>
</div>
<div class="tclcon">
<div>
<strong>{{ trans('Empty forum') }}</strong>
</div>
</div>
</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
</div>
</div>
<div class="linksb">
<div class="inbox crumbsplus">
<div class="pagepost">
<p class="pagelink conl">{{ paging_links|raw }}</p>
{{ post_link|raw }}
</div>
<ul class="crumbs">
<li><a href="{{ urlBase() }}">{{ trans('Index') }}</a></li>
<li>
<span>» </span>
<strong><a href="{{ pathFor('Forum', {'id': "#{ id }", 'name': "#{ url_forum }"}) }}">{{ cur_forum.forum_name }}</a></strong>
</li>
</ul>
{% if forum_actions is not empty %}
<p class="subscribelink clearb">{{ forum_actions|join(' - ')|raw }}
{% endif %}
<div class="clearer"></div>
</div>
</div>
{{ fireHook('view.forum.end') }}
{% endblock content %}