summaryrefslogtreecommitdiffstatshomepage
path: root/templates/sidebar.block.watchlist.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sidebar.block.watchlist.php')
-rw-r--r--templates/sidebar.block.watchlist.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/sidebar.block.watchlist.php b/templates/sidebar.block.watchlist.php
new file mode 100644
index 0000000..e35fa76
--- /dev/null
+++ b/templates/sidebar.block.watchlist.php
@@ -0,0 +1,19 @@
+<?php
+$userservice =& ServiceFactory::getServiceInstance('UserService');
+
+$watching = $userservice->getWatchNames($userid);
+if ($watching) {
+?>
+
+<h2><?php echo T_('Watching'); ?></h2>
+<div id="watching">
+ <ul>
+ <?php foreach($watching as $watchuser): ?>
+ <li><a href="<?php echo createURL('bookmarks', $watchuser); ?>"><?php echo $watchuser; ?></a> &rarr;</li>
+ <?php endforeach; ?>
+ </ul>
+</div>
+
+<?php
+}
+?> \ No newline at end of file