Skip to content

Commit

Permalink
Restore posts on user page
Browse files Browse the repository at this point in the history
Fix links from Facebook Page replies listing to user page
Closes ThinkUpLLC#910
  • Loading branch information
ginatrapani committed Aug 27, 2011
1 parent 564325e commit ad2624d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/_lib/view/_post.author_no_counts.tpl
Expand Up @@ -22,7 +22,7 @@ $unit (optional) If $show_distance='true', unit should be 'mi' or 'km' for miles
{if $post->network == 'twitter' && $username_link != 'internal'} {if $post->network == 'twitter' && $username_link != 'internal'}
<a href="{$site_root_path}user/?u={$post->author_username|urlencode}&n={$post->network|urlencode}&i={$selected_instance_username}">{$post->author_username}</a> <a href="{$site_root_path}user/?u={$post->author_username|urlencode}&n={$post->network|urlencode}&i={$selected_instance_username}">{$post->author_username}</a>
{else} {else}
<a href="{$site_root_path}user/index.php?u={$post->author_username|urlencode}&n={$post->network|urlencode}">{$post->author_username}</a> <a href="{$site_root_path}user/index.php?u={$post->author_username|urlencode}&n={if $post->network eq 'facebook page'}facebook{else}{$post->network|urlencode}{/if}">{$post->author_username}</a>
{/if} {/if}


{if ($post->author && $post->author->follower_count > 0)} {if ($post->author && $post->author->follower_count > 0)}
Expand Down
4 changes: 2 additions & 2 deletions webapp/_lib/view/user.index.tpl
Expand Up @@ -63,7 +63,7 @@
{if $mutual_friends} {if $mutual_friends}
<div class="clearfix"> <div class="clearfix">
<h2>Mutual friends</h2> <h2>Mutual friends</h2>
<div class="grid_18 alpha omega"> <div class="grid_18 alpha omega">
{foreach from=$mutual_friends key=uid item=u name=foo} {foreach from=$mutual_friends key=uid item=u name=foo}
<div class="avatar-container float-l mr_10 mb_10"> <div class="avatar-container float-l mr_10 mb_10">
<a href="http://twitter.com/{$u.user_name}" title="{$u.user_name}"><img src="{$u.avatar}" class="avatar2"/><img src="{$site_root_path}plugins/{$u.network}/assets/img/favicon.ico" class="service-icon2"/></a> <a href="http://twitter.com/{$u.user_name}" title="{$u.user_name}"><img src="{$u.avatar}" class="avatar2"/><img src="{$site_root_path}plugins/{$u.network}/assets/img/favicon.ico" class="service-icon2"/></a>
Expand All @@ -77,7 +77,7 @@
<div class="clearfix"> <div class="clearfix">
<h2>Posts</h2> <h2>Posts</h2>
{foreach from=$user_statuses key=tid item=t name=foo} {foreach from=$user_statuses key=tid item=t name=foo}
{include file="_post.counts_no_author.tpl" t=$t} {include file="_post.counts_no_author.tpl" post=$t}
{/foreach} {/foreach}


<div class="float-l"> <div class="float-l">
Expand Down

0 comments on commit ad2624d

Please sign in to comment.