From a42a44fc297ed4af0174ca85949e876ac38876d1 Mon Sep 17 00:00:00 2001 From: kipukun Date: Tue, 9 May 2017 20:12:54 -0400 Subject: [PATCH 1/3] fucking did it holy shit --- templates/home.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/home.html b/templates/home.html index 7f1972ba..ceda4409 100644 --- a/templates/home.html +++ b/templates/home.html @@ -2,10 +2,11 @@ {{define "contclass"}}cont-home{{end}} {{define "content"}}
-
From b9c16d77fb02a78498f4c65c921ed70f4e311605 Mon Sep 17 00:00:00 2001 From: kipukun Date: Tue, 9 May 2017 20:51:05 -0400 Subject: [PATCH 2/3] add autistic red button and report modal (DOESNT DO ANYTHING) --- templates/view.html | 172 +++++++++++++++++++++++++------------------- 1 file changed, 98 insertions(+), 74 deletions(-) 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 From ff5cf0532800b165f1d3c18df305b22398eeeaa7 Mon Sep 17 00:00:00 2001 From: kipukun Date: Tue, 9 May 2017 20:51:05 -0400 Subject: [PATCH 3/3] add autistic red button and report modal (DOESNT DO ANYTHING) --- templates/view.html | 172 +++++++++++++++++++++++++------------------- 1 file changed, 98 insertions(+), 74 deletions(-) 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