-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathposts_view.html.twig
More file actions
80 lines (73 loc) · 4.21 KB
/
posts_view.html.twig
File metadata and controls
80 lines (73 loc) · 4.21 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
{% extends '@forum/layout.html.twig' %}
{% block content %}
{{ fireHook('view.moderate.posts_view.start') }}
<div class="linkst">
<div class="inbox crumbsplus">
<ul class="crumbs">
<li><a href="{{ urlBase() }}">{{ trans('Index') }}</a></li>
<li><span>» </span><a href="{{ pathFor('Forum', {'id': fid, 'name': url_forum}) }}">{{ cur_topic.forum_name }}</a></li>
<li><span>» </span><a href="{{ pathFor('Topic', {'id': id, 'name': url_topic}) }}">{{ cur_topic.subject }}</a></li>
<li><span>» </span><strong>{{ trans('Moderate') }}</strong></li>
</ul>
<div class="pagepost">
<p class="pagelink conl">{{ paging_links|raw }}</p>
</div>
<div class="clearer"></div>
</div>
</div>
<form method="post" action="">
<input type="hidden" name="csrf_name" value="{{ csrf_name }}">
<input type="hidden" name="csrf_value" value="{{ csrf_value }}">
{% for post in post_data %}
<div id="p{{ post.id }}" class="blockpost {{ (post.id == cur_topic.first_post_id) ? 'firstpost' : '' }} {{ (loop.index % 2 == 0) ? 'roweven' : 'rowodd' }} {{ (loop.index == 1) ? 'blockpost1' : '' }}">
<h2><span><span class="conr"># {{ start_from + loop.index }}</span> <a href="{{ pathFor('viewPost', {'pid': post.id, 'name': url_topic, 'id': id}) }}#p{{ post.id }}">{{ formatTime(post.posted) }}</a></span></h2>
<div class="box">
<div class="inbox">
<div class="postbody">
<div class="postleft">
<dl>
<dt><strong>{{ post['poster_disp'] }}</strong></dt>
<dd class="usertitle"><strong>{{ post['user_title'] }}</strong></dd>
</dl>
</div>
<div class="postright">
<h3 class="nosize">{{ trans('Message') }}</h3>
<div class="postmsg">
{{ post.message|raw }}
{% if post.edited != '' %}
<p class="postedit"><em>{{ trans('Last edit') }} {{ post.edited_by }} ({{ formatTime(post.edited) }})</em></p>
{% endif %}
</div>
</div>
</div>
</div>
<div class="inbox">
<div class="postfoot clearb">
<div class="postfootright">{{ post.id != cur_topic.first_post_id ?
('<p class="multidelete"><label><strong>' ~trans('Select')
~'</strong> <input type="checkbox" name="posts[' ~post.id ~']" value="1" /></label></p>')|raw
: ('<p class="warntext">' ~trans('Cannot select first') ~'</p>')|raw }}</div>
</div>
</div>
</div>
</div>
{% endfor %}
<div class="postlinksb">
<div class="inbox crumbsplus">
<div class="pagepost">
<p class="pagelink conl">{{ paging_links|raw }}</p>
<p class="conr modbuttons"><input type="submit" name="split_posts" value="{{ trans('Split') }}"{{ button_status }} /> <input type="submit" name="delete_posts" value="{{ trans('Delete') }}"{{ button_status }} /></p>
<div class="clearer"></div>
</div>
<ul class="crumbs">
<li><a href="{{ urlBase() }}">{{ trans('Index') }}</a></li>
<li><span>» </span><a href="{{ pathFor('Forum', {'id': fid, 'name': url_forum}) }}">{{ cur_topic.forum_name }}</a></li>
<li><span>» </span><a href="{{ pathFor('Topic', {'id': id, 'name': url_topic}) }}">{{ cur_topic.subject }}</a></li>
<li><span>» </span><strong>{{ trans('Moderate') }}</strong></li>
</ul>
<div class="clearer"></div>
</div>
</div>
</form>
{{ fireHook('view.moderate.posts_view.end') }}
{% endblock content %}