Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Show date created for comments.

Hopefully I didn't break something. I don't normally use Bootstrap.
Cette révision appartient à :
TUSF 2017-05-10 17:54:07 -05:00 révisé par GitHub
Parent 855185eecc
révision d926016906

Voir le fichier

@ -67,13 +67,18 @@
<h4>{{T "comments"}}</h4>
{{ range $index, $element := .Comments }}
<div class="row comment-row" id="comment_{{$index}}">
<div class="col-md-4">
<div class="col-md-2">
{{if eq .UserID -1}}
<a href="#comment_{{$index}}">{{$index}}</a> {{.Username}}
<a href="#comment_{{$index}}">{{$index}}</a>
{{.Username}}
{{else}}
<a href="#comment_{{$index}}">{{$index}}</a> <a href="{{$.URL.Parse (printf "/user/%d/-" .UserID) }}">{{.Username}}</a>
<a href="#comment_{{$index}}">{{$index}}</a>
<a href="{{$.URL.Parse (printf "/user/%d/-" .UserID ) }}">{{.Username}}</a>
{{end}}
</div>
<div class="col-md-2">
{{.CreatedAt.Year}}/{{.CreatedAt.Month}}/{{.CreatedAt.Day}}
</div>
<div class="col-md-8">
{{.Content}}
</div>