openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

query.tpl (1086B)


      1 {{template "header.tpl" $}}
      2 {{template "pager.tpl" $}}
      3 <a class="rss" href="{{.PfxPath}}/{{.BasePath}}/rss">RSS</a>
      4 <div id="topic">
      5 {{ range .Msg }}
      6 <div class="msg">
      7 {{ if has_avatar .From }}
      8 <img class="avatar" src="/avatar/{{.From}}">
      9 {{ end }}
     10 <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>
     11 <span class="echo"><a href="{{$.PfxPath}}/{{.Echo}}">{{.Echo}}</a></span><br>
     12 <span class="info">{{.From}}({{.Addr}}) &mdash; {{.To}}<br>{{.Date | fdate}}</span><br>
     13 <div class="text">
     14 <br>
     15 {{ msg_text . }}
     16 <br>
     17 {{if $.User.Name}}
     18 <span class="reply"><a href="{{$.PfxPath}}/{{.MsgId}}/reply/new">Reply</a> :: </span>
     19 <span class="reply"><a href="{{$.PfxPath}}/{{.MsgId}}/reply">Quote</a></span>
     20 {{end}}
     21 {{ if msg_access . $.User }}
     22  :: <span class="reply"><a href="{{$.PfxPath}}/{{.MsgId}}/edit">Edit</a></span>
     23 {{ end }}
     24 {{if $.User.Name}}
     25 <br>
     26 {{end}}
     27 
     28 </div>
     29 </div>
     30 {{ end }}
     31 </div>
     32 {{template "pager.tpl" $}}
     33 
     34 {{template "footer.tpl"}}