github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/profile_comments_row.html (about)

     1  {{/** TODO: Temporary hack until we find a more granular way of doing this. Perhaps, a custom include function? **/}}
     2  {{if .Header.Theme.BgAvatars}}
     3  {{range .ItemList}}
     4  	<div id="post-{{.ID}}"class="rowitem passive deletable_block editable_parent simple {{.ClassName}}"style="background-image:url({{.Avatar}}),url(/s/post-avatar-bg.jpg);background-position:0px {{if le .ContentLines 5}}-1{{end}}0px;">
     5  		<span class="editable_block user_content simple">{{.ContentHtml}}</span>
     6  		<span class="controls">
     7  			<a href="{{.UserLink}}"class="real_username username">{{.CreatedByName}}</a>&nbsp;&nbsp;
     8  
     9  			{{if $.CurrentUser.IsMod}}<a href="/profile/reply/edit/submit/{{.ID}}?s={{$.CurrentUser.Session}}"class="mod_button"title="{{lang "profile.comments_edit_tooltip"}}"aria-label="{{lang "profile.comments_edit_aria"}}"><button class="username edit_item edit_label"></button></a>
    10  
    11  			<a href="/profile/reply/delete/submit/{{.ID}}?s={{$.CurrentUser.Session}}"class="mod_button"title="{{lang "profile.comments_delete_tooltip"}}"aria-label="{{lang "profile.comments_delete_aria"}}"><button class="username delete_item delete_label"></button></a>{{end}}
    12  
    13  			<a class="mod_button"href="/report/submit/{{.ID}}?s={{$.CurrentUser.Session}}&type=user-reply"><button class="username report_item flag_label"title="{{lang "profile.comments_report_tooltip"}}"aria-label="{{lang "profile.comments_report_aria"}}"></button></a>
    14  
    15  			{{if .Tag}}<a class="username hide_on_mobile user_tag"style="float:right;">{{.Tag}}</a>{{end}}
    16  		</span>
    17  	</div>
    18  {{end}}
    19  {{else}}
    20  {{template "profile_comments_row_alt.html" . }}
    21  {{end}}