topic.tpl (1088B)
1 {{template "header.tpl" $}} 2 {{template "pager.tpl" $}} 3 <div id="topic"> 4 {{ range .Msg }} 5 {{if eq $.Selected .MsgId }} 6 <a name="{{.MsgId}}"></a> 7 <div class="msg selected"> 8 {{else}} 9 <div class="msg"> 10 {{end}} 11 {{ if has_avatar .From }} 12 <img class="avatar" src="/avatar/{{.From}}"> 13 {{ end }} 14 <a class="msgid" href="{{$.PfxPath}}/{{.MsgId}}#{{.MsgId}}">#</a><span class="subj"> <a href="{{$.PfxPath}}/{{. | repto}}#{{. | repto}}">{{with .Subj}}{{.}}{{else}}No subject{{end}}</a></span><br> 15 <span class="info"><a href="{{$.PfxPath}}/from/{{.From}}">{{.From}}</a>({{.Addr}}) — {{.To}}<br>{{.Date | fdate}}</span><br> 16 <div class="text"> 17 <br> 18 {{. | msg_text}} 19 <br> 20 {{if $.User.Name}} 21 <span class="reply"><a href="{{$.PfxPath}}/{{.MsgId}}/reply/new">Reply</a> :: </span> 22 <span class="reply"><a href="{{$.PfxPath}}/{{.MsgId}}/reply">Quote</a></span> 23 {{end}} 24 {{ if msg_access . $.User }} 25 :: <span class="reply"><a href="{{$.PfxPath}}/{{.MsgId}}/edit">Edit</a></span> 26 {{ end }} 27 {{if $.User.Name}} 28 <br> 29 {{end}} 30 </div> 31 </div> 32 {{ end }} 33 </div> 34 {{template "pager.tpl" $}} 35 36 {{template "footer.tpl"}}