summaryrefslogtreecommitdiff
path: root/data/templates/sidebar.block.watchstatus.php
blob: 99574aad73c7a5f39785f0ab6cf66c8c5e9091f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/* Service creation: only useful services are created */
//No specific services


if ($userservice->isLoggedOn()) {

    if ($currentUser->getUsername() != $user) {
        $result = $userservice->getWatchStatus($userid, $userservice->getCurrentUserId());
        if ($result) {
            $linkText = T_('Remove from Watchlist');
        } else {
            $linkText = T_('Add to Watchlist');
        }
        $linkAddress = createURL('watch', $user);
?>

<h2><?php echo T_('Actions'); ?></h2>
<div id="watchlist">
    <ul>
        <li><a href="<?php echo $linkAddress ?>"><?php echo $linkText ?></a></li>
    </ul>
</div>

<?php
    }
}
?>