Add profile links to blacklist
authorDuck (Jakob Munih) <duck@obala.net>
Wed, 28 Jan 2009 18:55:16 +0000 (19:55 +0100)
committerDuck (Jakob Munih) <duck@obala.net>
Wed, 28 Jan 2009 18:55:16 +0000 (19:55 +0100)
folks/edit/blacklist.php
folks/templates/edit/blacklist.php

index 8c12e67..4ec8dee 100644 (file)
@@ -18,6 +18,8 @@ require_once 'tabs.php';
 
 $title = _("Blacklist");
 $remove_url = Util::addParameter(Horde::applicationUrl('edit/blacklist.php'), 'user', null);
+$remove_img = Horde::img('delete.png', '', '', $registry->getImageDir('horde'));
+$profile_img = Horde::img('user.png', '', '', $registry->getImageDir('horde'));
 
 // Load driver
 require_once FOLKS_BASE . '/lib/Friends.php';
index 0145c59..326fa2b 100644 (file)
@@ -16,13 +16,16 @@ if (empty($blacklist)) {
 <tbody>
 <?php foreach ($blacklist as $user) { ?>
 <tr>
-    <td><?php echo $user ?></td>
-    <td><a href="<?php $remove_url . $user ?>"><?php echo _("Remove") ?></a></td>
+    <td><?php echo '<img src="' . Folks::getImageUrl($user) . '" class="userMiniIcon" /> ' . $user ?></td>
+    <td>
+        <a href="<?php echo Util::addParameter($remove_url, 'user', $user) ?>"><?php echo $remove_img  . ' ' . _("Remove") ?></a>
+        <a href="<?php echo Folks::getUrlFor('user', $user) ?>"><?php echo $profile_img  . ' ' . _("View profile") ?></a>
+    </td>
 </tr>
 <?php } ?>
 </tbody>
 </table>
 
 <?php
-} 
+}
 echo $form->renderActive();
\ No newline at end of file