28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
{{define "title"}}街拍 · 管理后台{{end}}
|
|
{{define "barLabel"}}管理后台 · 街拍{{end}}
|
|
{{define "barRight"}}<a href="/admin/logout">退出</a>{{end}}
|
|
{{define "content"}}
|
|
{{template "bar" .}}
|
|
<div class="main">
|
|
<h1>街拍列表</h1>
|
|
<form class="toolbar" method="get" action="/admin/street-snaps">
|
|
<input name="city" placeholder="城市" value="{{.City}}">
|
|
<input name="year" placeholder="年份" value="{{if gt .Year 0}}{{.Year}}{{end}}" style="width:90px">
|
|
<select name="sort">
|
|
<option value="" {{if eq .Sort ""}}selected{{end}}>默认(图最多)</option>
|
|
<option value="year_desc" {{if eq .Sort "year_desc"}}selected{{end}}>年份 ↓</option>
|
|
<option value="year_asc" {{if eq .Sort "year_asc"}}selected{{end}}>年份 ↑</option>
|
|
</select>
|
|
<button type="submit">筛选</button>
|
|
<a href="/admin/street-snaps">清除</a>
|
|
</form>
|
|
<table>
|
|
<thead><tr><th>编码 ID</th><th>标题</th><th>图片数</th><th></th></tr></thead>
|
|
<tbody>
|
|
{{range .Items}}<tr><td><code>{{.UID}}</code></td><td>{{.Title}}</td><td>{{.ImageCount}}</td><td><a class="view" href="/admin/street-snaps/{{.UID}}">查看</a></td></tr>{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{template "pager" .Pager}}
|
|
</div>
|
|
{{end}}
|