From 1d17e7f334fb81881d7c0b43523f791fb890ea12 Mon Sep 17 00:00:00 2001 From: Azareal Date: Tue, 25 Sep 2018 19:22:20 +1000 Subject: [PATCH] Preliminary topic view counts for the Cosora Theme. Added the topic.view_count_suffix phrase. --- langs/english.json | 1 + themes/cosora/public/main.css | 10 +++++++++- themes/nox/public/main.css | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/langs/english.json b/langs/english.json index 4a9974a2..f4e2bd8c 100644 --- a/langs/english.json +++ b/langs/english.json @@ -288,6 +288,7 @@ "topics_last":"Last", "topics_starter":"Starter", "topic.like_count_suffix":" likes", + "topic.view_count_suffix":" views", "topic.plus":"+", "topic.plus_one":"+1", "topic.gap_up":" up", diff --git a/themes/cosora/public/main.css b/themes/cosora/public/main.css index 519e9a46..78590efb 100644 --- a/themes/cosora/public/main.css +++ b/themes/cosora/public/main.css @@ -963,7 +963,15 @@ textarea { line-height: 23px; } .topic_view_count { - display: none; + margin-left: 6px; + font-size: 13px; + margin-top: 4px; +} +.topic_view_count:before { + content: "(" +} +.topic_view_count:after { + content: "{{index .Phrases "topic.view_count_suffix"}})"; } .postImage { width: 100%; diff --git a/themes/nox/public/main.css b/themes/nox/public/main.css index 65da0349..bb58b1ec 100644 --- a/themes/nox/public/main.css +++ b/themes/nox/public/main.css @@ -585,7 +585,7 @@ button, .formbutton, .panel_right_button:not(.has_inner_button) { margin-top: 6px; } .topic_view_count:after { - content: " views"; + content: "{{index .Phrases "topic.view_count_suffix"}}"; } .topic_name_input { width: 100%;