FEATURE: Allow clickable post titles in Data Explorer result view using post_id

This commit is contained in:
Rishabh Nambiar 2018-10-23 16:15:40 +05:30
parent 17e649d645
commit 9dcba5c6e7
2 changed files with 26 additions and 14 deletions

View File

@ -1,15 +1,23 @@
{{~#if post}}
<aside class="quote"
data-post="{{post.post_number}}"
data-topic="{{post.topic_id}}">
<div class="title" style="cursor: pointer;">
<div class="quote-controls">
{{!<i class="fa fa-chevron-down" title="expand/collapse"></i>}}
<a href="/t/via-quote/{{post.topic_id}}/{{post.post_number}}"
title="go to the quoted post"
class="quote-other-topic"></a></div>
{{avatar post imageSize="tiny"}}{{post.username}}:</div>
<blockquote><p>{{{post.excerpt}}}</p></blockquote></aside>
{{~else}}
{{#if post}}
<aside class="quote" data-post="{{post.post_number}}" data-topic="{{post.topic_id}}">
<div class="title">
<div class="quote-controls">
{{!<i class="fa fa-chevron-down" title="expand/collapse"></i>}}
<a href="/t/via-quote/{{post.topic_id}}/{{post.post_number}}"
title="go to the quoted post"
class="quote-other-topic">
</a>
</div>
<a class="result-post-link" href="/t/{{post.topic_id}}/{{post.post_number}}">
{{avatar post imageSize="tiny"}}{{post.username}}:
</a>
</div>
<blockquote>
<p>
{{{post.excerpt}}}
</p>
</blockquote>
</aside>
{{else}}
{{id}}
{{~/if}}
{{/if}}

View File

@ -309,6 +309,10 @@
padding-top: 1em;
margin-bottom: 0px;
}
.result-post-link {
display: block;
color: inherit !important;
}
.explorer-pad-bottom {
margin-bottom: 200px;