Skip to:
Content

bbPress.org

Changeset 2408


Ignore:
Timestamp:
03/28/2010 08:15:26 PM (16 years ago)
Author:
chrishajer
Message:

Link '%s ago' to the actual post in profile pages. Enhancement fixes #1251, props Gautam Gupta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-templates/kakumei/profile.php

    r2177 r2408  
    4040<li<?php alt_class('replies'); ?>>
    4141    <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> -
    42     <?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You last replied: %s ago'), bb_get_post_time()); else printf(__('User last replied: %s ago'), bb_get_post_time()); ?> |
     42    <?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('You last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); else printf(__('User last replied: <a href="%1$s">%2$s ago</a>'), get_post_link(), bb_get_post_time()); ?> |
    4343
    4444    <span class="freshness"><?php
    4545        if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
    46             printf(__('Most recent reply: %s ago'), get_topic_time());
     46            printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(), get_topic_time());
    4747        else
    4848            _e('No replies since');
     
    6969    <span class="freshness"><?php
    7070        if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
    71             printf(__('Most recent reply: %s ago'), get_topic_time());
     71            printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(), get_topic_time());
    7272        else
    73             _e('No replies.');
     73            _e('No replies since');
    7474    ?></span>
    7575</li>
Note: See TracChangeset for help on using the changeset viewer.