From 007408c285f7d64ee6cf722974e79e68ae54cd00 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 5 Dec 2016 16:29:27 -0500 Subject: [PATCH] show featured topic links on categories-with-latest page too --- .../discourse/templates/components/latest-topic-list-item.hbs | 3 +++ app/assets/stylesheets/common/base/_topic-list.scss | 4 ++++ app/assets/stylesheets/desktop/category-list.scss | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs b/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs index 52247164511..e42241f0bb3 100644 --- a/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs +++ b/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs @@ -12,6 +12,9 @@ {{topic-status topic=topic}} {{topic-link topic}} + {{#if topic.featured_link}} + {{topic-featured-link topic}} + {{/if}} {{topic-post-badges newPosts=topic.totalUnread unseen=topic.unseen url=topic.lastUnreadUrl}} diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scss index 34abe80e414..cb1bccb1fc9 100644 --- a/app/assets/stylesheets/common/base/_topic-list.scss +++ b/app/assets/stylesheets/common/base/_topic-list.scss @@ -88,6 +88,10 @@ html.anon .topic-list a.title:visited:not(.badge-notification) {color: dark-ligh } } + .topic-featured-link { + padding-left: 5px; + } + .topic-excerpt { font-size: 0.929em; margin-top: 8px; diff --git a/app/assets/stylesheets/desktop/category-list.scss b/app/assets/stylesheets/desktop/category-list.scss index 151c01c2cd4..d33120135f9 100644 --- a/app/assets/stylesheets/desktop/category-list.scss +++ b/app/assets/stylesheets/desktop/category-list.scss @@ -151,6 +151,10 @@ font-size: 0.75em; } + .topic-featured-link { + padding-left: 8px; + } + .topic-list { .posts { width: 100%;