2007-12-12 16:29:16 +00:00
|
|
|
<?php
|
2008-12-05 07:25:04 +00:00
|
|
|
/* Service creation: only useful services are created */
|
|
|
|
//No specific services
|
|
|
|
|
|
|
|
|
2007-12-12 16:29:16 +00:00
|
|
|
if ($userservice->isLoggedOn()) {
|
|
|
|
|
2008-12-05 07:25:04 +00:00
|
|
|
if ($currentUser->getUsername() != $user) {
|
2007-12-12 16:29:16 +00:00
|
|
|
$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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|