2016-12-02 07:38:54 +00:00
|
|
|
{{template "header.html" . }}
|
|
|
|
<div class="rowblock">
|
2016-12-03 04:50:35 +00:00
|
|
|
<form action='/topic/edit/submit/{{.Something.ID}}' method="post">
|
2016-12-08 14:11:18 +00:00
|
|
|
<div class="rowitem"{{ if .Something.Sticky }} style="background-color: #FFFFEA;"{{end}}>
|
2016-12-03 04:50:35 +00:00
|
|
|
<a class='topic_name hide_on_edit'>{{.Something.Title}}</a>
|
2016-12-11 16:06:17 +00:00
|
|
|
<span class='username topic_status_e topic_status_{{.Something.Status}} hide_on_edit' style="font-weight:normal;float: right;">{{.Something.Status}}</span>
|
|
|
|
<span class="username" style="border-right: 0;font-weight: normal;float: right;">Status</span>
|
2016-12-07 13:46:14 +00:00
|
|
|
{{if .CurrentUser.Is_Mod}}
|
2016-12-11 16:06:17 +00:00
|
|
|
<a href='/topic/edit/{{.Something.ID}}' class="username hide_on_edit open_edit" style="font-weight: normal;margin-left: 6px;">Edit</a>
|
2016-12-03 10:25:39 +00:00
|
|
|
<a href='/topic/delete/submit/{{.Something.ID}}' class="username" style="font-weight: normal;">Delete</a>
|
|
|
|
{{ if .Something.Sticky }}<a href='/topic/unstick/submit/{{.Something.ID}}' class="username" style="font-weight: normal;">Unpin</a>{{else}}<a href='/topic/stick/submit/{{.Something.ID}}' class="username" style="font-weight: normal;">Pin</a>{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
|
2016-12-03 04:50:35 +00:00
|
|
|
<input class='show_on_edit topic_name_input' name="topic_name" value='{{.Something.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>
|
2016-12-03 10:25:39 +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-11 16:06:17 +00:00
|
|
|
<a href="/report/submit/{{.Something.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>
|
|
|
|
<div class="rowblock">
|
2016-12-07 13:46:14 +00:00
|
|
|
<div class="rowitem passive editable_parent" style="border-bottom: none;{{ if .Something.Avatar }}background-image: url({{ .Something.Avatar }}), url(/static/white-dot.jpg);background-position: 0px {{if le .Something.ContentLines 5}}-1{{end}}0px;background-repeat: no-repeat, repeat-y;background-size: 128px;padding-left: 136px;{{.Something.Css}}{{end}}">
|
2016-12-08 14:11:18 +00:00
|
|
|
<span class="hide_on_edit topic_content user_content">{{.Something.Content}}</span>
|
2016-12-03 04:50:35 +00:00
|
|
|
<textarea name="topic_content" class="show_on_edit topic_content_input">{{.Something.Content}}</textarea>
|
2016-12-02 07:38:54 +00:00
|
|
|
<br /><br />
|
2016-12-07 09:34:09 +00:00
|
|
|
<a href="/user/{{.Something.CreatedBy}}" class="username">{{.Something.CreatedByName}}</a>
|
2016-12-09 13:46:29 +00:00
|
|
|
{{if .Something.Tag}}<a class="username" style="float: right;">{{.Something.Tag}}</a>{{else if .Something.URLName}}<a href="{{.Something.URL}}" class="username" style="color: #505050;float: right;">{{.Something.URLName}}</a>
|
|
|
|
<a class="username" style="color: #505050;float: right;border-right: 0;">{{.Something.URLPrefix}}</a>{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
|
|
|
</div><br />
|
2016-12-02 15:03:31 +00:00
|
|
|
<div class="rowblock" style="overflow: hidden;">
|
|
|
|
{{range $index, $element := .ItemList}}
|
2016-12-07 13:46:14 +00:00
|
|
|
<div class="rowitem passive deletable_block editable_parent" style="{{ if $element.Avatar }}background-image: url({{$element.Avatar}}), url(/static/white-dot.jpg);background-position: 0px {{if le $element.ContentLines 5}}-1{{end}}0px;background-repeat: no-repeat, repeat-y;background-size: 128px;padding-left: 136px;{{$element.Css}}{{end}}">
|
2016-12-08 14:11:18 +00:00
|
|
|
<span class="editable_block user_content">{{$element.ContentHtml}}</span>
|
2016-12-02 07:38:54 +00:00
|
|
|
<br /><br />
|
2016-12-07 09:34:09 +00:00
|
|
|
<a href="/user/{{$element.CreatedBy}}" class="username">{{$element.CreatedByName}}</a>
|
2016-12-07 13:46:14 +00:00
|
|
|
{{if $.CurrentUser.Is_Mod}}<a href="/reply/edit/submit/{{$element.ID}}"><button class="username edit_item">Edit</button></a>
|
2016-12-04 06:16:59 +00:00
|
|
|
<a href="/reply/delete/submit/{{$element.ID}}"><button class="username delete_item">Delete</button></a>{{end}}
|
2016-12-11 16:06:17 +00:00
|
|
|
<a href="/report/submit/{{$element.ID}}?session={{$.CurrentUser.Session}}&type=reply"><button class="username report_item">Report</button></a>
|
2016-12-09 13:46:29 +00:00
|
|
|
{{if $element.Tag}}<a class="username" style="float: right;">{{$element.Tag}}</a>{{else if $element.URLName}}<a href="{{$element.URL}}" class="username" style="color: #505050;float: right;" rel="nofollow">{{$element.URLName}}</a>
|
|
|
|
<a class="username" style="color: #505050;float: right;border-right: 0;">{{$element.URLPrefix}}</a>{{end}}
|
2016-12-07 09:34:09 +00:00
|
|
|
</div>{{end}}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
2016-12-04 10:44:28 +00:00
|
|
|
{{if not .CurrentUser.Is_Banned}}
|
2016-12-02 07:38:54 +00:00
|
|
|
<div class="rowblock">
|
|
|
|
<form action="/reply/create/" method="post">
|
2016-12-03 04:50:35 +00:00
|
|
|
<input name="tid" value='{{.Something.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" . }}
|