From 7eb4a7c913e8ebe055ecf44c9fd3c7dddf301f70 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 7 Jul 2016 14:33:47 -0400 Subject: [PATCH] theme changes re: nodebb/nodebb#4827 --- less/account.less | 38 ++++++++++++++++ templates/account/info.tpl | 69 +++++++++++++++++++++++++++++ templates/account/settings.tpl | 9 ---- templates/partials/account/menu.tpl | 1 + 4 files changed, 108 insertions(+), 9 deletions(-) create mode 100644 templates/account/info.tpl diff --git a/less/account.less b/less/account.less index b38874e..b276c69 100644 --- a/less/account.less +++ b/less/account.less @@ -300,4 +300,42 @@ line-height: 46px; margin: 0; } +} + +.page-user-info { + .recent-flags { + padding-left: 0; + + li { + list-style-type: none; + } + + .title { + font-weight: bold; + } + + .timestamp { + font-size: 1.25rem; + font-style: italic; + color: @gray-light; + } + } + + .ban-history { + padding-left: 0; + + li { + list-style-type: none; + } + + .timestamp { + font-weight: bold; + } + + .expiry { + font-size: 1.25rem; + font-style: italic; + color: @gray-light; + } + } } \ No newline at end of file diff --git a/templates/account/info.tpl b/templates/account/info.tpl new file mode 100644 index 0000000..ecfc7f9 --- /dev/null +++ b/templates/account/info.tpl @@ -0,0 +1,69 @@ +
+ + +
+
+
+
+

[[global:recentips]]

+
+
+
    + +
  • @value
  • + +
+
+
+
+
+
+
+

[[user:info.latest-flags]]

+
+
+ +
    + +
  • +

    + {../title}
    + Flagged ({../timestampReadable}) +

    +
  • + +
+ +
[[user:info.no-flags]]
+ +
+
+ +
+
+

[[user:info.ban-history]]

+
+
+ +
    + +
  • +

    + — {../timestampReadable}
    + + [[user:info.banned-until, {../untilReadable}]] + + [[user:info.banned-permanently]] + +

    +
  • + +
+ +
[[user:info.no-ban-history]]
+ +
+
+
+
+
\ No newline at end of file diff --git a/templates/account/settings.tpl b/templates/account/settings.tpl index 5c31bed..6365a72 100644 --- a/templates/account/settings.tpl +++ b/templates/account/settings.tpl @@ -112,15 +112,6 @@ - -

[[global:recentips]]

-
- -
{ips.ip}
- -
- -

{customSettings.title}

diff --git a/templates/partials/account/menu.tpl b/templates/partials/account/menu.tpl index 645efe3..c2b7cea 100644 --- a/templates/partials/account/menu.tpl +++ b/templates/partials/account/menu.tpl @@ -19,6 +19,7 @@
  • [[user:settings]]
  • [[user:edit]]
  • +
  • [[user:account_info]]