diff --git a/templates/view.html b/templates/view.html index 5ac14a66..4df265ab 100644 --- a/templates/view.html +++ b/templates/view.html @@ -1,38 +1,35 @@ -{{define "title"}}{{.Torrent.Name}}{{end}} -{{define "contclass"}}cont-view{{end}} -{{define "content"}} -
- {{with .Torrent}} -
- - - - - - - - - - - - - - - - - - - - - {{if ne .WebsiteLink ""}} - - - +{{define "title"}}{{.Torrent.Name}}{{end}} {{define "contclass"}}cont-view{{end}} {{define "content"}} +
+ {{with .Torrent}} +
+
{{T "name"}} - {{.Name}} - -
{{T "hash"}}{{.Hash}}
{{T "date"}}{{.Date}}
{{T "size"}}{{.Filesize}}
Uploader{{.UploaderName}}
{{T "Link"}}{{.WebsiteLink}}
+ + + + + + + + + + + + + + + + + + + + {{if ne .WebsiteLink ""}} + + + {{end}} @@ -41,44 +38,71 @@ Download! - - {{if ne .TorrentLink ""}} - + {{if ne .TorrentLink ""}} + Torrent file - {{end}} - - - - - - - - - - - - {{ range $index, $element := .Comments }} - - - - - {{end}} -
{{T "name"}} + {{.Name}} + +
{{T "hash"}}{{.Hash}}
{{T "date"}}{{.Date}}
{{T "size"}}{{.Filesize}}
Uploader{{.UploaderName}}
{{T "Link"}}{{.WebsiteLink}}
{{T "description"}}{{.Description}}
{{T "comments"}}
- {{$index}} - {{.Username}} - {{.Content}}
- {{end}} -
-
- {{/* There should be a better way to use translation on this... */}} - - -
- {{with .Captcha}} - {{block "captcha" .}}{{end}} - {{end}} - -
-
-{{end}} + + Report! + {{end}} + + + + {{T "description"}} + {{.Description}} + + + + + + + {{T "comments"}} + + + {{ range $index, $element := .Comments }} + + + {{$index}} {{.Username}} + + {{.Content}} + + {{end}} + + {{end}} +
+
+ {{/* There should be a better way to use translation on this... */}} + + +
+ {{with .Captcha}} {{block "captcha" .}}{{end}} {{end}} + +
+ +{{with .Torrent}} + +{{end}} \ No newline at end of file