diff --git a/templates/view.html b/templates/view.html index 5ec74a44..3fcdf2cb 100644 --- a/templates/view.html +++ b/templates/view.html @@ -1,84 +1,96 @@ -{{define "title"}}{{.Torrent.Name}}{{end}} {{define "contclass"}}cont-view{{end}} {{define "content"}} -
- {{with .Torrent}} -
-
-
-
-
-
-

{{.Name}}

-
- -

Uploaded by {{.UploaderName}}

-
-
-
-
-
-
- - Download! - - {{if ne .TorrentLink ""}} - - Torrent file - - - Report! - {{end}} -
-
-
-
-

{{T "hash"}}

-

{{.Hash}}

-
-

{{T "date"}}

-

{{.Date}}

-
-

{{T "size"}}

-

{{.Filesize}}

-
- {{if ne .WebsiteLink ""}} -

{{T "Link"}}

-

{{.WebsiteLink}}

-
- {{end}} -
-
-
-
-

{{T "description"}}

-
{{.Description}}
-
-
-
+{{define "title"}}{{.Torrent.Name}}{{end}} +{{define "contclass"}}cont-view{{end}} +{{define "content"}} +
+ {{with .Torrent}} +
+ + + + + + + + + + + + + + + + + + + + + {{if ne .WebsiteLink ""}} + + + + + {{end}} + + + + + + + + + + + + + + + + + {{ range $index, $element := .Comments }} + + + + + {{end}} +
{{T "name"}} + {{.Name}} + +
{{T "hash"}}{{.Hash}}
{{T "date"}}{{.Date}}
{{T "size"}}{{.Filesize}}
Uploader{{.UploaderName}}
{{T "Link"}}{{.WebsiteLink}}
{{T "links"}} + + Download! + + {{if ne .TorrentLink ""}} + + Torrent file + + + Report! + {{end}} +
{{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}} - -
+
+
+ {{/* There should be a better way to use translation on this... */}} + +
-
+ {{with .Captcha}} {{block "captcha" .}}{{end}} {{end}} + +
- {{with .Torrent}} {{end}}