From 56de8727405ce4c08c38adec2f830d845e528190 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 17 Jun 2008 23:57:39 -0400 Subject: move instructions up to the "whats up" area darcs-hash:20080618035739-84dde-a562cffe186780d5f03cf53798ea249b2bda9fb1.gz --- actions/subscriptions.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'actions/subscriptions.php') 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'); -- cgit v1.2.3-54-g00ecf