From 9b4df5056f2dba6b6fa7ac392c2114fd3c1400a0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 8 Dec 2008 00:55:11 -0500 Subject: add block form to subscribers list and profile page I added a small form for blocking users to profiles in the profile list, and also to the profile page. I also added an action to handle the results of blocking someone. This required some changes to the profile list class (so I could add the block form), so I made them. And the gallery class lets its subclasses return a subclass of ProfileList for their profile list. darcs-hash:20081208055511-5ed1f-e2e09986bd3b9cbb6a00a0c6b94f49ea78b7bdab.gz --- actions/showstream.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actions/showstream.php') diff --git a/actions/showstream.php b/actions/showstream.php index bd1b8a7de..e12a227e3 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -202,6 +202,12 @@ class ShowstreamAction extends StreamAction { $user = User::staticGet('id', $profile->id); common_profile_new_message_nudge($cur, $user, $profile); + if ($cur) { + common_element_start('li', array('id' => 'profile_block')); + common_block_form($profile); + common_element_end('li'); + } + common_element_end('ul'); common_element_end('div'); -- cgit v1.2.3-54-g00ecf