subscribe-bot/web/templates/map-version.html

37 lines
963 B
HTML
Raw Normal View History

2020-10-14 20:58:01 +00:00
{{ define "content" }}
<h3>versions of {{ .Beatmapset.Artist }} - {{ .Beatmapset.Title }}</h3>
<p>
<a href="https://osu.ppy.sh/s/{{ .Beatmapset.ID }}" target="_blank">Map link</a>
&middot;
mapped by <a href="https://osu.ppy.sh/u/{{ .Beatmapset.UserID }}" target="_blank">{{ .Beatmapset.Creator }}</a>
</p>
2020-10-14 20:58:01 +00:00
<small>up to the latest 20 revisions, pagination coming later</small>
<table>
<thead>
<th>Date</th>
<th>Links</th>
<th>Summary</th>
</thead>
<tbody>
{{ range .Versions }}
<tr>
<td><span title="{{ .Date }}">{{ .HumanDate }}</span></td>
<td>
<a href="zip/{{ .Hash }}" target="_blank">zip</a>
2020-10-14 20:58:01 +00:00
{{ if .HasParent }}
2020-10-14 20:58:47 +00:00
<a href="patch/{{ .Hash }}" target="_blank">patch</a>
2020-10-14 20:58:01 +00:00
{{ end }}
</td>
<td><pre>{{ .Summary }}</pre></td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}