From 07b846c72dbcca103fa208aa7229e4bcb1a8298b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 24 Jul 2020 14:07:57 -0400 Subject: [PATCH] feat: theme changes for nodebb/nodebb#8510 Squashed commit of the following: commit bbafa08bd7e1753af5adc50e1b01a6939d154907 Author: Julian Lam Date: Fri Jul 17 15:52:31 2020 -0400 add trash can icon to delete target button commit 0e585109e5d19aad31dde13a084dec78b1cc533f Author: Julian Lam Date: Fri Jul 17 15:44:29 2020 -0400 removed refunct 'reporter' dropdown in quick actions commit 7bc2c0bdbcb42fa322c82c1808cdbbfa7419b1fd Author: Julian Lam Date: Fri Jul 17 15:14:35 2020 -0400 fix: margin in flag report bq commit eb59fc455c63f67d51f2ae12f06208e5e09a7afc Author: Julian Lam Date: Fri Jul 17 15:08:40 2020 -0400 wip: nodebb/nodebb#8510 --- less/flags.less | 19 ++++++++-------- templates/flags/detail.tpl | 45 +++++++++++--------------------------- templates/flags/list.tpl | 9 ++++---- 3 files changed, 26 insertions(+), 47 deletions(-) diff --git a/less/flags.less b/less/flags.less index ccb1d36..b1007a0 100644 --- a/less/flags.less +++ b/less/flags.less @@ -1,15 +1,7 @@ .page-flags { [component="flags/list"] { - td { - max-width: 300px; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - } - - [component="flags/list/description"] { - font-style: italic; - color: @gray-light; + tr { + .pointer; } } @@ -17,6 +9,13 @@ .pointer; } + [component="flag/reports"] { + blockquote { + margin: 0; + margin-top: 1rem; + } + } + [component="flag/notes"] { .media { padding: 1rem; diff --git a/templates/flags/detail.tpl b/templates/flags/detail.tpl index 43b5156..c06bd75 100644 --- a/templates/flags/detail.tpl +++ b/templates/flags/detail.tpl @@ -48,24 +48,17 @@
-
-
-

[[flags:reporter]]

-
- {buildAvatar(reporter, "sm", false, "media-object")} - {reporter.username} -
-
-
-

[[flags:reported-at]]

-

- {datetimeISO} -

-
-
-

[[flags:description]]

-
{description}
+

[[flags:reports]]

+

[[flags:state]]

@@ -137,10 +130,10 @@ {{{ if type_bool.post }}} {{{ if !target.deleted}}} - [[flags:delete-post]] + [[flags:delete-post]] {{{ else }}} - [[flags:purge-post]] - [[flags:restore-post]] + [[flags:purge-post]] + [[flags:restore-post]] {{{ end }}} {{{ end }}} @@ -165,18 +158,6 @@
{{{ end }}} -
- - -
-

[[flags:history]]

diff --git a/templates/flags/list.tpl b/templates/flags/list.tpl index 3510650..24b1b9c 100644 --- a/templates/flags/list.tpl +++ b/templates/flags/list.tpl @@ -30,8 +30,8 @@ [[flags:state]] - - + + @@ -49,12 +49,11 @@ [[flags:state-{../state}]] - {../target_readable}{../description} + {../target_readable} - {buildAvatar(../reporter, "sm")} - {../reporter.username} + {./heat}