2019-04-16 09:42:20 +00:00
|
|
|
{{range .ItemList}}<article {{scope "post"}} id="post-{{.ID}}" itemscope itemtype="http://schema.org/CreativeWork" class="rowitem passive deletable_block editable_parent post_item{{if .ActionType}} action_item{{end}}{{if .Attachments}} has_attachs{{end}}">
|
2018-12-28 11:13:06 +00:00
|
|
|
{{template "topic_alt_userinfo.html" . }}
|
2019-04-17 04:01:40 +00:00
|
|
|
<div class="content_container">
|
2018-06-24 13:49:29 +00:00
|
|
|
{{if .ActionType}}
|
2019-04-17 04:01:40 +00:00
|
|
|
<span class="action_icon" aria-hidden="true">{{.ActionIcon}}</span>
|
2018-06-24 13:49:29 +00:00
|
|
|
<span itemprop="text">{{.ActionType}}</span>
|
|
|
|
{{else}}
|
|
|
|
<div class="editable_block user_content" itemprop="text">{{.ContentHtml}}</div>
|
2019-03-25 03:30:56 +00:00
|
|
|
{{if $.CurrentUser.Loggedin}}
|
2018-12-31 09:03:49 +00:00
|
|
|
<div class="edit_source auto_hide">{{.Content}}</div>
|
|
|
|
|
2019-03-25 03:30:56 +00:00
|
|
|
{{if $.CurrentUser.Perms.EditReply}}
|
2019-04-17 01:57:31 +00:00
|
|
|
<div class="show_on_block_edit attach_edit_bay" type="reply" id="{{.ID}}">
|
2019-04-10 07:40:47 +00:00
|
|
|
{{range .Attachments}}
|
2019-04-16 09:42:20 +00:00
|
|
|
<div class="attach_item attach_item_item{{if .Image}} attach_image_holder{{end}}">
|
2019-07-25 07:00:49 +00:00
|
|
|
{{if .Image}}<img src="//{{$.Header.Site.URL}}/attachs/{{.Path}}?sid={{.SectionID}}&stype=forums" height=24 width=24 />{{end}}
|
2019-04-10 07:40:47 +00:00
|
|
|
<span class="attach_item_path" aid="{{.ID}}" fullPath="//{{$.Header.Site.URL}}/attachs/{{.Path}}">{{.Path}}</span>
|
|
|
|
<button class="attach_item_select">{{lang "topic.select_button_text"}}</button>
|
|
|
|
<button class="attach_item_copy">{{lang "topic.copy_button_text"}}</button>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<div class="attach_item attach_item_buttons">
|
|
|
|
{{if $.CurrentUser.Perms.UploadFiles}}
|
|
|
|
<input name="upload_files" class="upload_files_post auto_hide" id="upload_files_post_{{.ID}}" multiple type="file" />
|
|
|
|
<label for="upload_files_post_{{.ID}}" class="formbutton add_file_button">{{lang "topic.upload_button_text"}}</label>{{end}}
|
2019-04-17 01:57:31 +00:00
|
|
|
<button class="attach_item_delete formbutton">{{lang "topic.delete_button_text"}}</button>
|
2019-04-10 07:40:47 +00:00
|
|
|
</div>
|
2019-04-11 04:22:03 +00:00
|
|
|
</div>
|
2018-12-31 09:03:49 +00:00
|
|
|
{{end}}{{end}}
|
|
|
|
|
2018-06-24 13:49:29 +00:00
|
|
|
<div class="controls button_container{{if .LikeCount}} has_likes{{end}}">
|
2018-08-21 08:00:35 +00:00
|
|
|
<div class="action_button_left">
|
2018-06-24 13:49:29 +00:00
|
|
|
{{if $.CurrentUser.Loggedin}}
|
2019-07-26 22:36:06 +00:00
|
|
|
{{if $.CurrentUser.Perms.LikeItem}}<a href="/reply/like/submit/{{.ID}}?s={{$.CurrentUser.Session}}" class="action_button like_item {{if .Liked}}remove{{else}}add{{end}}_like" aria-label="{{lang "topic.post_like_aria"}}" data-action="like"></a>{{end}}
|
2019-03-25 03:30:56 +00:00
|
|
|
<a href="" class="action_button quote_item" aria-label="{{lang "topic.quote_aria"}}" data-action="quote"></a>
|
2018-06-24 13:49:29 +00:00
|
|
|
{{if not $.Topic.IsClosed or $.CurrentUser.Perms.CloseTopic}}
|
2019-07-26 22:36:06 +00:00
|
|
|
{{if $.CurrentUser.Perms.EditReply}}<a href="/reply/edit/submit/{{.ID}}?s={{$.CurrentUser.Session}}" class="action_button edit_item" aria-label="{{lang "topic.post_edit_aria"}}" data-action="edit"></a>{{end}}
|
2018-06-24 13:49:29 +00:00
|
|
|
{{end}}
|
2019-07-26 22:36:06 +00:00
|
|
|
{{if $.CurrentUser.Perms.DeleteReply}}<a href="/reply/delete/submit/{{.ID}}?s={{$.CurrentUser.Session}}" class="action_button delete_item" aria-label="{{lang "topic.post_delete_aria"}}" data-action="delete"></a>{{end}}
|
2019-08-31 22:34:43 +00:00
|
|
|
{{if $.CurrentUser.Perms.ViewIPs}}<a href="/users/ips/?ip={{.IP}}" title="{{lang "topic.ip_full_tooltip"}}" class="action_button ip_item_button hide_on_big" aria-label="{{lang "topic.ip_full_aria"}}" data-action="ip"></a>{{end}}
|
2019-07-26 22:36:06 +00:00
|
|
|
<a href="/report/submit/{{.ID}}?s={{$.CurrentUser.Session}}&type=reply" class="action_button report_item" aria-label="{{lang "topic.report_aria"}}" data-action="report"></a>
|
2018-06-24 13:49:29 +00:00
|
|
|
<a href="#" class="action_button button_menu"></a>
|
|
|
|
{{end}}
|
2018-08-21 08:00:35 +00:00
|
|
|
</div>
|
2018-06-24 13:49:29 +00:00
|
|
|
<div class="action_button_right">
|
|
|
|
<a class="action_button like_count hide_on_micro" aria-label="{{lang "topic.post_like_count_tooltip"}}">{{.LikeCount}}</a>
|
2018-12-27 05:42:41 +00:00
|
|
|
<a class="action_button created_at hide_on_mobile" title="{{abstime .CreatedAt}}">{{reltime .CreatedAt}}</a>
|
2019-08-31 22:34:43 +00:00
|
|
|
{{if $.CurrentUser.Loggedin}}{{if $.CurrentUser.Perms.ViewIPs}}<a href="/users/ips/?ip={{.IP}}" title="IP Address" class="action_button ip_item hide_on_mobile" aria-hidden="true">{{.IP}}</a>{{end}}{{end}}
|
2018-06-24 13:49:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
</article>{{end}}
|