openidec

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

blog.tpl (953B)


      1 {{template "header.tpl" $}}
      2 {{template "pager.tpl" $}}
      3 <a class="rss" href="/{{.BasePath}}">Echo</a> :: <a class="rss" href="{{.PfxPath}}/echo+topics/{{.Echo}}/rss">RSS</a>
      4 <div id="topic">
      5 {{range $k, $v := .Topics }}
      6 {{ with .Head }}
      7 <a name="{{.MsgId}}"></a>
      8 
      9 <div class="msg">
     10 <a class="msgid" href="/blog/{{.MsgId}}#{{.MsgId}}">#</a><span class="subj"> <a href="/blog/{{. | repto}}#{{. | repto}}">{{with .Subj}}{{.}}{{else}}No subject{{end}}</a></span><br>
     11 <span class="info"><a href="{{$.PfxPath}}/from/{{.From}}">{{.From}}</a>({{.Addr}}) &mdash; {{.To}}<br>{{.Date | fdate}}</span><br>
     12 
     13 <div class="text">
     14 <br>
     15 {{$more := (print "... <a class='more' href='" $.PfxPath "/" .MsgId "#" .MsgId "'>[ Read it &gt;&gt; ]</a>")}}
     16 {{msg_trunc . 280 $more}}
     17 <br>
     18 {{ end }}
     19 <span class="reply"><a href="/blog/{{.Tail.MsgId}}#{{.Tail.MsgId}}">{{.Count}} Replies</a></span>
     20 </div>
     21 </div>
     22 {{ end }}
     23 </div>
     24 
     25 {{template "pager.tpl" $}}
     26 {{template "footer.tpl"}}