mirror of
https://codeberg.org/hyperreal/AnnasTorrentMirror
synced 2024-11-25 06:03:42 +01:00
Fixed if torrentsEnabled on the other templates.
This commit is contained in:
parent
dcd71d0bba
commit
363bace4d8
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,4 +2,5 @@ annastorrents.exe
|
|||||||
annastorrents
|
annastorrents
|
||||||
torrents.db
|
torrents.db
|
||||||
torrents.db-shm
|
torrents.db-shm
|
||||||
torrents.db-wal
|
torrents.db-wal
|
||||||
|
assets/torrents
|
12
main.go
12
main.go
@ -1122,7 +1122,7 @@ func getTemplateContent(name string) string {
|
|||||||
<td>{{.StatusLabel}}</td>
|
<td>{{.StatusLabel}}</td>
|
||||||
<td><a href="{{.MagnetLink | urlsafe}}">Magnet</a></td>
|
<td><a href="{{.MagnetLink | urlsafe}}">Magnet</a></td>
|
||||||
<td>
|
<td>
|
||||||
{{if $.Torrents}}
|
{{if torrentsEnabled}}
|
||||||
<a href="/assets/torrents/{{.BTIH}}.torrent">Torrent</a>
|
<a href="/assets/torrents/{{.BTIH}}.torrent">Torrent</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a href="{{.URL}}">Torrent</a>
|
<a href="{{.URL}}">Torrent</a>
|
||||||
@ -1148,11 +1148,11 @@ func getTemplateContent(name string) string {
|
|||||||
<tr><td>Size</td><td>{{.FormattedDataSize}}</td></tr>
|
<tr><td>Size</td><td>{{.FormattedDataSize}}</td></tr>
|
||||||
<tr><td>Magnet Link</td><td><a href="{{.MagnetLink | urlsafe}}">Magnet</a></td></tr>
|
<tr><td>Magnet Link</td><td><a href="{{.MagnetLink | urlsafe}}">Magnet</a></td></tr>
|
||||||
<tr><td>Torrent Link</td><td>
|
<tr><td>Torrent Link</td><td>
|
||||||
{{if $.Torrents}}
|
{{if torrentsEnabled}}
|
||||||
<a href="/assets/torrents/{{.BTIH}}.torrent">Torrent</a>
|
<a href="/assets/torrents/{{.BTIH}}.torrent">Torrent</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a href="{{.URL}}">Torrent</a>
|
<a href="{{.URL}}">Torrent</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td>Last Update</td><td>{{.StatsScrapedAt}}</td></tr>
|
<tr><td>Last Update</td><td>{{.StatsScrapedAt}}</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
BIN
torrents.db
BIN
torrents.db
Binary file not shown.
Loading…
Reference in New Issue
Block a user