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.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/sidebar.block.watchlist.php b/templates/sidebar.block.watchlist.php
index a42acba..eaf68dc 100644
--- a/templates/sidebar.block.watchlist.php
+++ b/templates/sidebar.block.watchlist.php
@@ -3,7 +3,6 @@
//No specific services
$watching = $userservice->getWatchNames($userid);
-if ($watching) {
?>
<h2><?php echo T_('Watching'); ?></h2>
@@ -12,9 +11,11 @@ if ($watching) {
<?php foreach($watching as $watchuser): ?>
<li><a href="<?php echo createURL('bookmarks', $watchuser); ?>"><?php echo $watchuser; ?></a> &rarr;</li>
<?php endforeach; ?>
+ <li>
+ <form action="<?php echo createURL('watch', '');?>" method="post">
+ <input type="text" name="contact" value="<?php echo T_('Add a contact...');?>" onfocus="if (this.value == '<?php echo T_('Add a contact...');?>') this.value = '';" onblur="if (this.value == '') this.value = '<?php echo T_('Add a contact...');?>';" title="<?php echo T_('Type a username to add it to your contacts.') ?>" />
+ </form>
+ </li>
</ul>
-</div>
-<?php
-}
-?> \ No newline at end of file
+</div>