From d516a88b4c714e6b37adeda92621613cbf2a1047 Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 24 Apr 2020 22:27:25 -0400 Subject: [PATCH] DEV: add tag name class to body of tag pages --- .../discourse/app/templates/tags/show.hbs | 164 +++++++++--------- 1 file changed, 83 insertions(+), 81 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/tags/show.hbs b/app/assets/javascripts/discourse/app/templates/tags/show.hbs index 80f38623c33..ea0ed47cfc0 100644 --- a/app/assets/javascripts/discourse/app/templates/tags/show.hbs +++ b/app/assets/javascripts/discourse/app/templates/tags/show.hbs @@ -1,90 +1,92 @@ -
- {{discourse-banner user=currentUser banner=site.banner}} -
- -
+{{#d-section pageClass="tags" bodyClass=(concat "tag-" tag.id)}}
- + {{discourse-banner user=currentUser banner=site.banner}}
-
-{{#if showInfo}} - {{tag-info tag=tag list=list deleteAction=(action "deleteTag")}} -{{/if}} +
+
+ +
+
+ + {{#if showInfo}} + {{tag-info tag=tag list=list deleteAction=(action "deleteTag")}} + {{/if}} + + {{plugin-outlet name="discovery-list-container-top"}} + +
+
+
+
+ {{#unless loading}} + {{#if list.topics}} + {{#discovery-topics-list model=list refresh=(action "refresh")}} + {{bulk-select-button selected=selected action=(action "refresh")}} + {{topic-list + topics=list.topics + canBulkSelect=canBulkSelect + toggleBulkSelect=(action "toggleBulkSelect") + bulkSelectEnabled=bulkSelectEnabled + selected=selected + showPosters=true + order=order + ascending=ascending + changeSort=(action "changeSort") + }} + {{/discovery-topics-list}} + {{else}} + + {{/if}} + {{/unless}} + + {{conditional-loading-spinner condition=list.loadingMore}} +
- +{{/d-section}}