diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-17 23:57:39 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-17 23:57:39 -0400 |
commit | 56de8727405ce4c08c38adec2f830d845e528190 (patch) | |
tree | c5b39d06c642dc7098cc8d44b4d004b3b422667c /actions/subscriptions.php | |
parent | fddcfd75c53b8e08be5b71ca24c31b6982fea7ad (diff) |
move instructions up to the "whats up" area
darcs-hash:20080618035739-84dde-a562cffe186780d5f03cf53798ea249b2bda9fb1.gz
Diffstat (limited to 'actions/subscriptions.php')
-rw-r--r-- | actions/subscriptions.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/actions/subscriptions.php b/actions/subscriptions.php index 566a053ea..35a707894 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -38,11 +38,20 @@ class SubscriptionsAction extends Action { $this->no_such_user(); } $page = $this->arg('page') || 1; - common_show_header($profile->nickname . ": " . _t('Subscriptions')); + common_show_header($profile->nickname . ": " . _t('Subscriptions'), + NULL, $profile, + array($this, 'show_top')); $this->show_subscriptions($profile, $page); common_show_footer(); } + function show_top($profile) { + $user = common_current_user(); + common_element('p', 'instructions', + _t('These are the people whose notices ') . + (($user && ($user->id == $profile->id)) ? _t('you listen to.') : ($profile->nickname . _t(' listens to.')))); + } + function show_subscriptions($profile, $page) { $subs = DB_DataObject::factory('subscription'); |