From 9dcfaae9c0f014362404ebe64be83e7d1b83bd34 Mon Sep 17 00:00:00 2001 From: Andrew Zhao Date: Tue, 9 May 2017 23:07:28 -0700 Subject: [PATCH] Revert "New view template design" --- templates/view.html | 155 ++++++++++++++++++++++++-------------------- 1 file changed, 84 insertions(+), 71 deletions(-) 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}}