From 9dcba5c6e7b744f42819e93fe5ab28c833365dbe Mon Sep 17 00:00:00 2001 From: Rishabh Nambiar <5862206+rishabhnambiar@users.noreply.github.com> Date: Tue, 23 Oct 2018 16:15:40 +0530 Subject: [PATCH] FEATURE: Allow clickable post titles in Data Explorer result view using post_id --- .../discourse/templates/explorer/post.raw.hbs | 36 +++++++++++-------- assets/stylesheets/explorer.scss | 4 +++ 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/assets/javascripts/discourse/templates/explorer/post.raw.hbs b/assets/javascripts/discourse/templates/explorer/post.raw.hbs index 5d71d48..bafa4cc 100644 --- a/assets/javascripts/discourse/templates/explorer/post.raw.hbs +++ b/assets/javascripts/discourse/templates/explorer/post.raw.hbs @@ -1,15 +1,23 @@ -{{~#if post}} - -{{~else}} +{{#if post}} + +{{else}} {{id}} -{{~/if}} +{{/if}} diff --git a/assets/stylesheets/explorer.scss b/assets/stylesheets/explorer.scss index aaa9216..0d2dc75 100644 --- a/assets/stylesheets/explorer.scss +++ b/assets/stylesheets/explorer.scss @@ -309,6 +309,10 @@ padding-top: 1em; margin-bottom: 0px; } +.result-post-link { + display: block; + color: inherit !important; +} .explorer-pad-bottom { margin-bottom: 200px;