2017-05-05 10:52:08 +02:00
{{define "title"}}{{.Torrent.Name}}{{end}}
2017-05-06 06:46:07 +02:00
{{define "contclass"}}cont-view{{end}}
2017-05-05 05:04:04 +02:00
{{define "content"}}
< div class = "blockBody" >
2017-05-05 10:52:08 +02:00
{{with .Torrent}}
2017-05-05 17:02:53 +02:00
< hr >
< table class = "table table-borderless" >
2017-05-05 05:04:04 +02:00
< tr { { if eq . Status 2 } } class = "remake" { { end } }
{{if eq .Status 3}}class="trusted"{{end}}
{{if eq .Status 4}}class="aplus"{{end}}>
2017-05-08 22:42:44 +02:00
< td > {{T "name"}}< / td >
2017-05-06 22:32:50 +02:00
< td >
{{.Name}}
2017-05-06 23:46:53 +02:00
< img style = "float:right" src = "{{$.URL.Parse (printf " / img / torrents / % s . png " . Sub_Category ) } } " >
2017-05-06 22:32:50 +02:00
< / td >
2017-05-05 05:04:04 +02:00
< / tr >
< tr >
2017-05-08 22:42:44 +02:00
< td > {{T "hash"}}< / td >
2017-05-05 22:13:38 +02:00
< td class = "torrent-hash" > {{.Hash}}< / td >
2017-05-05 05:04:04 +02:00
< / tr >
< tr >
2017-05-08 22:42:44 +02:00
< td > {{T "date"}}< / td >
2017-05-05 15:55:25 +02:00
< td class = "date-full" > {{.Date}}< / td >
2017-05-05 05:04:04 +02:00
< / tr >
< tr >
2017-05-08 22:42:44 +02:00
< td > {{T "size"}}< / td >
2017-05-05 05:04:04 +02:00
< td > {{.Filesize}}< / td >
< / tr >
< tr >
2017-05-08 22:42:44 +02:00
< td > {{T "links"}}< / td >
2017-05-07 18:58:11 +02:00
< td >
< a aria-label = "Magnet Button" href = "{{.Magnet}}" type = "button" class = "btn btn-success download-btn" >
2017-05-08 05:34:12 +02:00
< span class = "glyphicon glyphicon-magnet" aria-hidden = "true" > < / span > Download!
2017-05-07 18:58:11 +02:00
< / a >
< a style = "padding-left: 0.5em" > < / a >
< a aria-label = "Torrent file" href = "http://anicache.com/torrent/{{.Hash}}.torrent" type = "button" class = "btn btn-success" >
< span class = "glyphicon glyphicon-floppy-save" aria-hidden = "true" > < / span > Torrent file
< / a >
2017-05-05 05:04:04 +02:00
< / td >
< / tr >
< tr >
2017-05-08 22:42:44 +02:00
< td > {{T "description"}}< / td >
2017-05-05 05:04:04 +02:00
< td > {{.Description}}< / td >
< / tr >
2017-05-06 13:27:35 +02:00
< tr style = "height:2em" > < td > < / td > < td > < / td > < / tr >
2017-05-06 04:18:24 +02:00
< tr >
2017-05-08 22:42:44 +02:00
< td > {{T "comments"}}< / td >
2017-05-06 13:27:35 +02:00
< td > < / td >
< / tr >
2017-05-08 06:49:00 +02:00
{{ range $index, $element := .Comments }}
< tr class = "comment-row" id = "comment_{{$index}}" >
< td >
< a href = "#comment_{{$index}}" > {{$index}}< / a >
{{.Username}}
< / td >
2017-05-08 04:06:11 +02:00
< td > {{.Content}}< / td >
2017-05-06 13:27:35 +02:00
< / tr >
{{end}}
2017-05-05 05:04:04 +02:00
< / table >
2017-05-08 05:34:12 +02:00
{{end}}
< form method = "post" >
< div class = "form-group" >
2017-05-08 22:42:44 +02:00
{{/* There should be a better way to use translation on this... */}}
< label for = "comment" > {{ if gt .User.Id 0}} {{T "submit_a_comment_as_username" .User.Username}} {{else}} {{T "submit_a_comment_as_anonymous"}} {{end}}< / label >
2017-05-08 05:34:12 +02:00
< textarea name = "comment" class = "form-control" rows = "5" > < / textarea >
< / div >
{{with .Captcha}}
{{block "captcha" .}}{{end}}
{{end}}
2017-05-08 22:42:44 +02:00
< input type = "submit" value = "{{T " submit " } } " >
2017-05-08 05:34:12 +02:00
< / form >
2017-05-05 05:04:04 +02:00
< / div >
2017-05-05 13:06:41 +02:00
{{end}}