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
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ annastorrents
|
||||
torrents.db
|
||||
torrents.db-shm
|
||||
torrents.db-wal
|
||||
assets/torrents
|
4
main.go
4
main.go
@ -1122,7 +1122,7 @@ func getTemplateContent(name string) string {
|
||||
<td>{{.StatusLabel}}</td>
|
||||
<td><a href="{{.MagnetLink | urlsafe}}">Magnet</a></td>
|
||||
<td>
|
||||
{{if $.Torrents}}
|
||||
{{if torrentsEnabled}}
|
||||
<a href="/assets/torrents/{{.BTIH}}.torrent">Torrent</a>
|
||||
{{else}}
|
||||
<a href="{{.URL}}">Torrent</a>
|
||||
@ -1148,7 +1148,7 @@ func getTemplateContent(name string) string {
|
||||
<tr><td>Size</td><td>{{.FormattedDataSize}}</td></tr>
|
||||
<tr><td>Magnet Link</td><td><a href="{{.MagnetLink | urlsafe}}">Magnet</a></td></tr>
|
||||
<tr><td>Torrent Link</td><td>
|
||||
{{if $.Torrents}}
|
||||
{{if torrentsEnabled}}
|
||||
<a href="/assets/torrents/{{.BTIH}}.torrent">Torrent</a>
|
||||
{{else}}
|
||||
<a href="{{.URL}}">Torrent</a>
|
||||
|
BIN
torrents.db
BIN
torrents.db
Binary file not shown.
Loading…
Reference in New Issue
Block a user