Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emphasize Good people w/ high follower counts relative to the instance user [ci skip]
- Loading branch information
1 parent
e85f238
commit c5b7448
Showing
5 changed files
with
94 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
{foreach from=$i->related_data key=uid item=p name=bar} | ||
{include file="_insights.post.tpl" post=$p} | ||
{/foreach} | ||
{if $i->slug eq 'posts_on_this_day_flashback'} | ||
{foreach from=$i->related_data key=uid item=p name=bar} | ||
{* Hide posts after the first one *} | ||
{if $smarty.foreach.bar.index eq 1} | ||
<div style="display:none" id="flashback-{$i->id}"> | ||
{/if} | ||
|
||
{* Show "X years ago you posted" text if post is from a different year than the last one *} | ||
{if !$smarty.foreach.bar.first and $prev_post_year neq $p->adj_pub_date|date_format:"%Y"} | ||
<span style="color:gray">{$p->adj_pub_date|relative_datetime} ago, you posted:</span> | ||
{/if} | ||
|
||
{include file="_insights.post.tpl" post=$p} | ||
|
||
{* Show more link if there are more posts after the first one *} | ||
{if $smarty.foreach.bar.total gt 0 and $smarty.foreach.bar.first} | ||
<div align="right"><a href="javascript:;" title="See more flashback posts" onclick="{literal}${/literal}('#flashback-{$i->id}').show(); return false;">more...</a> </div> | ||
{/if} | ||
{* Close up hidden div if there is one *} | ||
{if $smarty.foreach.bar.total gt 0 and $smarty.foreach.bar.last} | ||
</div> | ||
{/if} | ||
{assign var="prev_post_year" value=$p->adj_pub_date|date_format:"%Y"} | ||
{/foreach} | ||
{else} | ||
{foreach from=$i->related_data key=uid item=p name=bar} | ||
{include file="_insights.post.tpl" post=$p} | ||
{/foreach} | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters