openidec

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

topics.tpl (788B)


      1 {{template "header.tpl" $}}
      2 {{template "pager.tpl" $}}
      3 <a class="rss" href="/blog/{{.BasePath}}">Blog</a> :: <a class="rss" href="/echo/{{.BasePath}}">Feed</a>
      4 <table id="topiclist" cellspacing=0 cellpadding=0>
      5 <tr class="title">
      6 <th>Topics</th>
      7 <th class="extra">Replies</th>
      8 <th>Last post</th>
      9 </tr>
     10 {{range $k, $v := .Topics }}
     11 {{ if is_even $k }}
     12 <tr class="even">
     13 {{ else }}
     14 <tr class="odd">
     15 {{ end }}
     16 <td class="topic"><a href="/{{.Head.MsgId}}/1">{{with .Head.Subj}}{{.}}{{else}}No subject{{end}}</a></td>
     17 <td class="posts extra">{{.Count}}</td>
     18 <td class="info"><span class="subj">{{.Tail.Subj}}</span><br><a href="/{{.Tail.MsgId}}#{{.Tail.MsgId}}">{{.Tail.Date | fdate}}</a><br>by {{.Tail.From}}</td>
     19 </tr>
     20 {{ end }}
     21 </table>
     22 {{template "pager.tpl" $}}
     23 {{template "footer.tpl"}}