From 7e7f9e46bd970331758ded13173d9af27a4108fd Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 27 May 2019 18:50:47 +1000 Subject: [PATCH] Remove the previous and next links we don't use in topic_alt. Fix the attachment manager not appearing for opening posts. Fix rels in the wrong tags. --- templates/paginator.html | 4 ++-- templates/topic_alt.html | 7 ++----- themes/nox/public/main.css | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/templates/paginator.html b/templates/paginator.html index dca2e4d9..cf768e07 100644 --- a/templates/paginator.html +++ b/templates/paginator.html @@ -1,6 +1,6 @@ {{if gt .LastPage 1}}
- {{if gt .Page 1}} + {{if gt .Page 1}} {{end}} {{range .PageList}} @@ -9,6 +9,6 @@ {{if ne .LastPage .Page}} - {{end}} + {{end}}
{{end}} \ No newline at end of file diff --git a/templates/topic_alt.html b/templates/topic_alt.html index 2be3ac21..7d47030a 100644 --- a/templates/topic_alt.html +++ b/templates/topic_alt.html @@ -1,10 +1,7 @@ {{template "header.html" . }} -{{if gt .Page 1}} -
{{end}} - -{{if ne .LastPage .Page}} -
{{end}} +{{if gt .Page 1}}{{end}} +{{if ne .LastPage .Page}}{{end}}
diff --git a/themes/nox/public/main.css b/themes/nox/public/main.css index b6c4418b..4a46061d 100644 --- a/themes/nox/public/main.css +++ b/themes/nox/public/main.css @@ -1033,7 +1033,8 @@ input[type=checkbox]:checked + label .sel { .attach_item button { margin-top: -1px; } -.post_item:not(.has_attachs) .attach_item_buttons, +.post_item:not(.has_attachs):not(.top_post) .attach_item_buttons, +.post_item:not(.has_attachs) .attach_item_delete, .has_attachs .update_buttons .add_file_button { display: none; } @@ -1398,7 +1399,6 @@ input[type=checkbox]:checked + label .sel { max-width: calc(100% - 180px); } } - {{/**@media(max-width: 850px) { // }**/}}