vods.html - twitch-go - twitch.tv web application in Go
 (HTM) git clone git://git.codemadness.org/twitch-go
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       vods.html (958B)
       ---
            1 {{define "title"}}VODS{{if .Search}} for {{.User.Display_name}}{{end}}{{end}}
            2 {{define "class"}}vods{{end}}
            3 
            4 {{define "content"}}
            5 
            6 {{if .Search}}
            7 
            8 <p><a href="?n={{.Search}}&amp;f=atom">Atom feed</a></p>
            9 
           10 <table class="table" border="0">
           11 <thead>
           12         <tr>
           13                 <th class="created_at" align="left">Created</th>
           14                 <th class="title" align="left">Title</th>
           15                 <th class="duration" align="right">Duration</th>
           16                 <th class="viewcount" align="right">Viewcount</th>
           17         </tr>
           18 </thead>
           19 <tbody>
           20 {{range .Videos}}
           21         <tr>
           22                 <td>{{.Created_at}}</td>
           23                 <td class="wrap"><a href="{{.Url}}">{{.Title}}</a></td>
           24                 <td align="right"><a href="{{.Url}}">{{.Duration}}</a></td>
           25                 <td align="right"><a href="{{.Url}}">{{.View_count}}</a></td>
           26         </tr>
           27 {{end}}
           28 </tbody>
           29 </table>
           30 
           31 {{else}}
           32 
           33 <form method="get" action="">
           34         <input type="search" name="n" value="" placeholder="Login name..." autofocus="autofocus" />
           35         <input type="submit" name="list" value="List vods" />
           36 </form>
           37 
           38 {{end}}
           39 
           40 {{end}}