From 69f4248f724b53a02fc367d9c867cbb34a14cb1e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 28 Jun 2019 15:34:05 -0400 Subject: [PATCH] feat: functioning category dropdown in recent/unread/etc without js (#483) * 10.1.0 * feat: WIP nojs category dropdown in recent * feat: allowing new topic button to be clicked without js It now opens a category dropdown which then sends user to the discrete composer page. WARNING: Does not work on tag.tpl. Needs core update to send categories data through... * fix: removed unneeded data-toggle attribute --- less/category.less | 4 ++++ templates/partials/buttons/newTopic.tpl | 15 +++++++++++++++ templates/popular.tpl | 2 +- templates/recent.tpl | 2 +- templates/tag.tpl | 2 +- templates/top.tpl | 2 +- templates/unread.tpl | 2 +- 7 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 templates/partials/buttons/newTopic.tpl diff --git a/less/category.less b/less/category.less index 6b86ab0..b267624 100644 --- a/less/category.less +++ b/less/category.less @@ -169,6 +169,10 @@ font-size: 65%; border-radius: 50%; } + + #category-dropdown-check:checked + .dropdown-menu { + display: block; + } } .category-dropdown-menu { diff --git a/templates/partials/buttons/newTopic.tpl b/templates/partials/buttons/newTopic.tpl new file mode 100644 index 0000000..58dc9d8 --- /dev/null +++ b/templates/partials/buttons/newTopic.tpl @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/templates/popular.tpl b/templates/popular.tpl index 4f7363f..0337670 100644 --- a/templates/popular.tpl +++ b/templates/popular.tpl @@ -8,7 +8,7 @@
- + [[category:guest-login-post]] diff --git a/templates/recent.tpl b/templates/recent.tpl index 47af6a3..999240f 100644 --- a/templates/recent.tpl +++ b/templates/recent.tpl @@ -8,7 +8,7 @@
- + [[category:guest-login-post]] diff --git a/templates/tag.tpl b/templates/tag.tpl index eca4d05..c509d9d 100644 --- a/templates/tag.tpl +++ b/templates/tag.tpl @@ -4,7 +4,7 @@
- + [[category:guest-login-post]] diff --git a/templates/top.tpl b/templates/top.tpl index f7e161d..d8ebb84 100644 --- a/templates/top.tpl +++ b/templates/top.tpl @@ -8,7 +8,7 @@
- + [[category:guest-login-post]] diff --git a/templates/unread.tpl b/templates/unread.tpl index 5fa1ed3..19ea779 100644 --- a/templates/unread.tpl +++ b/templates/unread.tpl @@ -7,7 +7,7 @@
- +