From fec7a9eb4714feea0f07c91a8e151a954625abe6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 29 Nov 2016 22:11:26 -0500 Subject: [PATCH] WIP theme stuff for nodebb/nodebb#5232 --- less/flags.less | 15 +++++++ less/persona.less | 1 + templates/flags/detail.tpl | 47 ++++++++++++++++++++++ templates/flags/list.tpl | 47 ++++++++++++++++++++++ templates/partials/flags/quick-filters.tpl | 9 +++++ 5 files changed, 119 insertions(+) create mode 100644 less/flags.less create mode 100644 templates/flags/detail.tpl create mode 100644 templates/flags/list.tpl create mode 100644 templates/partials/flags/quick-filters.tpl diff --git a/less/flags.less b/less/flags.less new file mode 100644 index 0000000..f84218a --- /dev/null +++ b/less/flags.less @@ -0,0 +1,15 @@ +.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; + } + } +} \ No newline at end of file diff --git a/less/persona.less b/less/persona.less index 77e5f09..b03543c 100644 --- a/less/persona.less +++ b/less/persona.less @@ -17,6 +17,7 @@ @import "footer"; @import "posts_list"; @import "register"; +@import "flags"; @import "mobile"; diff --git a/templates/flags/detail.tpl b/templates/flags/detail.tpl new file mode 100644 index 0000000..56f0d43 --- /dev/null +++ b/templates/flags/detail.tpl @@ -0,0 +1,47 @@ +
+
+ +
+
+

+ {target_readable} + +

+ +
+ + + +
+ +
+
+
+
+ + +
+
+
+
+
+
diff --git a/templates/flags/list.tpl b/templates/flags/list.tpl new file mode 100644 index 0000000..953c420 --- /dev/null +++ b/templates/flags/list.tpl @@ -0,0 +1,47 @@ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
[[flags:state]]
+
+ [[flags:no-flags]] +
+
{../state} + + {../target_readable}{../description} + + + + + +
{../reporter.icon:text}
+ + {../reporter.username} +
+
+
diff --git a/templates/partials/flags/quick-filters.tpl b/templates/partials/flags/quick-filters.tpl new file mode 100644 index 0000000..d9d6f2b --- /dev/null +++ b/templates/partials/flags/quick-filters.tpl @@ -0,0 +1,9 @@ +
+
+

[[flags:quick-filters]]

+
+ +
\ No newline at end of file