bdbd80319f
The DefaultRoute parameter in the configuration struct is now a string. Fixed a few mismatched HTML tags. Added the profile_comments_row template. Added more alt attributes for images and associated title=""s in a few places. Connections should now be closed properly. Custom Pages no longer have a .html file extension in their URLs. We now track route views for the default route and the custom page route. Began work on cleaning up the profiles on Cosora.
42 lines
2.3 KiB
HTML
42 lines
2.3 KiB
HTML
{{/** TODO: Temporary hack until we find a more granular way of doing this. Perhaps, a custom include function? **/}}
|
|
{{if .Header.Theme.BgAvatars}}
|
|
{{range .ItemList}}
|
|
<div class="rowitem passive deletable_block editable_parent simple {{.ClassName}}" style="background-image: url({{.Avatar}}), url(/static/post-avatar-bg.jpg);background-position: 0px {{if le .ContentLines 5}}-1{{end}}0px;">
|
|
<span class="editable_block user_content simple">{{.ContentHtml}}</span>
|
|
<span class="controls">
|
|
<a href="{{.UserLink}}" class="real_username username">{{.CreatedByName}}</a>
|
|
|
|
{{if $.CurrentUser.IsMod}}<a href="/profile/reply/edit/submit/{{.ID}}" class="mod_button" title="Edit Item"><button class="username edit_item edit_label"></button></a>
|
|
|
|
<a href="/profile/reply/delete/submit/{{.ID}}" class="mod_button" title="Delete Item"><button class="username delete_item trash_label"></button></a>{{end}}
|
|
|
|
<a class="mod_button" href="/report/submit/{{.ID}}?session={{$.CurrentUser.Session}}&type=user-reply"><button class="username report_item flag_label"></button></a>
|
|
|
|
{{if .Tag}}<a class="username hide_on_mobile user_tag" style="float: right;">{{.Tag}}</a>{{end}}
|
|
</span>
|
|
</div>
|
|
{{end}}
|
|
{{else}}
|
|
{{range .ItemList}}
|
|
<div class="rowitem passive deletable_block editable_parent comment {{.ClassName}}">
|
|
<div class="userbit">
|
|
<img src="{{.Avatar}}" alt="{{.CreatedByName}}'s Avatar" title="{{.CreatedByName}}'s Avatar" />
|
|
<span class="nameAndTitle">
|
|
<a href="{{.UserLink}}" class="real_username username">{{.CreatedByName}}</a>
|
|
{{if .Tag}}<a class="username hide_on_mobile user_tag" style="float: right;">{{.Tag}}</a>{{end}}
|
|
</span>
|
|
</div>
|
|
<div class="content_column">
|
|
<span class="editable_block user_content">{{.ContentHtml}}</span>
|
|
<span class="controls">
|
|
{{if $.CurrentUser.IsMod}}
|
|
<a href="/profile/reply/edit/submit/{{.ID}}" class="mod_button" title="Edit Item"><button class="username edit_item edit_label"></button></a>
|
|
<a href="/profile/reply/delete/submit/{{.ID}}" class="mod_button" title="Delete Item"><button class="username delete_item trash_label"></button></a>
|
|
{{end}}
|
|
|
|
<a class="mod_button" href="/report/submit/{{.ID}}?session={{$.CurrentUser.Session}}&type=user-reply"><button class="username report_item flag_label"></button></a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}} |