2016-12-02 07:38:54 +00:00
|
|
|
{{template "header.html" . }}
|
|
|
|
<div class="rowblock">
|
2016-12-21 02:30:32 +00:00
|
|
|
<form action='/topic/edit/submit/{{.Topic.ID}}' method="post">
|
2016-12-26 04:44:07 +00:00
|
|
|
<div class="rowitem"{{ if .Topic.Sticky }} style="background-color: #FFFFEA;"{{else if .Topic.Is_Closed}} style="background-color: #eaeaea;"{{end}}>
|
2016-12-21 02:30:32 +00:00
|
|
|
<a class='topic_name hide_on_edit'>{{.Topic.Title}}</a>
|
2017-01-08 16:02:19 +00:00
|
|
|
{{if .Topic.Is_Closed}}<span class='username hide_on_micro topic_status_e topic_status_closed hide_on_edit' title='Status: Closed' style="font-weight:normal;float: right;">🔒︎</span>{{end}}
|
2016-12-07 13:46:14 +00:00
|
|
|
{{if .CurrentUser.Is_Mod}}
|
2016-12-21 02:30:32 +00:00
|
|
|
<a href='/topic/edit/{{.Topic.ID}}' class="username hide_on_edit open_edit" style="font-weight: normal;margin-left: 6px;">Edit</a>
|
|
|
|
<a href='/topic/delete/submit/{{.Topic.ID}}' class="username" style="font-weight: normal;">Delete</a>
|
2017-01-08 16:02:19 +00:00
|
|
|
{{if .Topic.Sticky}}<a href='/topic/unstick/submit/{{.Topic.ID}}' class="username" style="font-weight: normal;">Unpin</a>{{else}}<a href='/topic/stick/submit/{{.Topic.ID}}' class="username" style="font-weight: normal;">Pin</a>{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
|
2016-12-21 02:30:32 +00:00
|
|
|
<input class='show_on_edit topic_name_input' name="topic_name" value='{{.Topic.Title}}' type="text" />
|
2016-12-11 16:06:17 +00:00
|
|
|
<select name="topic_status" class='show_on_edit topic_status_input' style='float: right;'>
|
2016-12-02 07:38:54 +00:00
|
|
|
<option>open</option>
|
2017-01-08 16:02:19 +00:00
|
|
|
<option>closed</option>
|
2016-12-02 07:38:54 +00:00
|
|
|
</select>
|
|
|
|
<button name="topic-button" class="formbutton show_on_edit submit_edit">Update</button>
|
2016-12-04 06:16:59 +00:00
|
|
|
{{end}}
|
2016-12-21 02:30:32 +00:00
|
|
|
<a href="/report/submit/{{.Topic.ID}}?session={{.CurrentUser.Session}}&type=topic" class="username report_item" style="font-weight: normal;">Report</a>
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-12-24 13:14:40 +00:00
|
|
|
<div class="rowblock post_container">
|
|
|
|
<div class="rowitem passive editable_parent post_item" style="border-bottom: none;{{ if .Topic.Avatar }}background-image: url({{ .Topic.Avatar }}), url(/static/white-dot.jpg);background-position: 0px {{if le .Topic.ContentLines 5}}-1{{end}}0px;background-repeat: no-repeat, repeat-y;background-size: 128px;padding-left: 136px;{{.Topic.Css}}{{end}}">
|
|
|
|
<p class="hide_on_edit topic_content user_content" style="margin: 0;padding: 0;">{{.Topic.Content}}</p>
|
2016-12-21 02:30:32 +00:00
|
|
|
<textarea name="topic_content" class="show_on_edit topic_content_input">{{.Topic.Content}}</textarea>
|
2016-12-02 07:38:54 +00:00
|
|
|
<br /><br />
|
2016-12-24 13:14:40 +00:00
|
|
|
<a href="/user/{{.Topic.CreatedBy}}" class="username real_username">{{.Topic.CreatedByName}}</a>
|
|
|
|
{{if .Topic.Tag}}<a class="username hide_on_micro" style="float: right;">{{.Topic.Tag}}</a>{{else if .Topic.URLName}}<a href="{{.Topic.URL}}" class="username" style="color: #505050;float: right;">{{.Topic.URLName}}</a>
|
2016-12-21 02:30:32 +00:00
|
|
|
<a class="username" style="color: #505050;float: right;border-right: 0;">{{.Topic.URLPrefix}}</a>{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
|
|
|
</div><br />
|
2016-12-26 04:44:07 +00:00
|
|
|
<div class="rowblock post_container" style="overflow: hidden;">{{range .ItemList}}
|
2017-01-07 06:31:04 +00:00
|
|
|
<div class="rowitem rowhead passive deletable_block editable_parent post_item" style="{{ if .Avatar }}background-image: url({{.Avatar}}), url(/static/white-dot.jpg);background-position: 0px {{if le .ContentLines 5}}-1{{end}}0px;background-repeat: no-repeat, repeat-y;background-size: 128px;padding-left: 136px;{{.Css}}{{end}}">
|
2016-12-26 04:44:07 +00:00
|
|
|
<p class="editable_block user_content" style="margin: 0;padding: 0;">{{.ContentHtml}}</p><br /><br />
|
2016-12-24 13:14:40 +00:00
|
|
|
<a href="/user/{{.CreatedBy}}" class="username real_username">{{.CreatedByName}}</a>
|
|
|
|
{{if $.CurrentUser.Perms.EditReply}}<a href="/reply/edit/submit/{{.ID}}" class="mod_button"><button class="username edit_item">Edit</button></a>{{end}}
|
|
|
|
{{if $.CurrentUser.Perms.DeleteReply}}<a href="/reply/delete/submit/{{.ID}}" class="mod_button"><button class="username delete_item">Delete</button></a>{{end}}
|
|
|
|
<a href="/report/submit/{{.ID}}?session={{$.CurrentUser.Session}}&type=reply" class="mod_button"><button class="username report_item">Report</button></a>
|
|
|
|
{{if .Tag}}<a class="username hide_on_micro" style="float: right;">{{.Tag}}</a>{{else if .URLName}}<a href="{{.URL}}" class="username hide_on_mobile" style="color: #505050;float: right;" rel="nofollow">{{.URLName}}</a>
|
|
|
|
<a class="username hide_on_mobile" style="color: #505050;float: right;border-right: 0;">{{.URLPrefix}}</a>{{end}}
|
2016-12-26 04:44:07 +00:00
|
|
|
</div>
|
|
|
|
{{end}}</div>
|
2016-12-21 02:30:32 +00:00
|
|
|
{{if .CurrentUser.Perms.CreateReply}}
|
2016-12-02 07:38:54 +00:00
|
|
|
<div class="rowblock">
|
|
|
|
<form action="/reply/create/" method="post">
|
2016-12-21 02:30:32 +00:00
|
|
|
<input name="tid" value='{{.Topic.ID}}' type="hidden" />
|
2016-12-02 07:38:54 +00:00
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><textarea name="reply-content" placeholder="Insert reply here"></textarea></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2016-12-08 14:11:18 +00:00
|
|
|
<div class="formitem"><button name="reply-button" class="formbutton">Create Reply</button></div>
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-12-04 10:44:28 +00:00
|
|
|
{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
{{template "footer.html" . }}
|