This changes links from /posts/:id to /posts/:guid where the links are not clicked very often. ID search is faster than guid search so we can't change it everywhere, but these links are not very useful for clicking, but can be used for easier guid look up. closes #7453
42 lines
1.2 KiB
Handlebars
42 lines
1.2 KiB
Handlebars
<div class="media {{#if showPost}} {{#if nsfw}} shield-off {{/if}} {{else}} shield-active {{/if}}">
|
|
{{#with author}}
|
|
<a href="/people/{{guid}}" class="img {{{hovercardable this}}}">
|
|
{{{personImage this}}}
|
|
</a>
|
|
{{/with}}
|
|
|
|
<div class="bd">
|
|
{{#if loggedIn}}
|
|
<div class="post-controls"></div>
|
|
{{/if}}
|
|
|
|
<div>
|
|
{{#linkToAuthor author}}
|
|
{{~name~}}
|
|
{{/linkToAuthor}}
|
|
|
|
<span class="details gray">
|
|
-
|
|
{{#if preview}}
|
|
<time class="timeago" data-original-title="{{{localTime created_at}}}" datetime="{{created_at}}" />
|
|
{{else}}
|
|
<a href="/posts/{{id}}">
|
|
<time class="timeago" data-original-title="{{{localTime created_at}}}" datetime="{{created_at}}" />
|
|
</a>
|
|
|
|
<a href="/posts/{{guid}}" class="permalink" title="{{t "stream.permalink"}}">
|
|
<i class="entypo-link"></i>
|
|
</a>
|
|
{{/if}}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="post-content"> </div>
|
|
<div class="status-message-location nsfw-hidden"> </div>
|
|
|
|
<div class="feedback nsfw-hidden"> </div>
|
|
<div class="likes nsfw-hidden"> </div>
|
|
<div class="reshares nsfw-hidden"> </div>
|
|
<div class="comments nsfw-hidden"> </div>
|
|
</div>
|
|
</div>
|