|
|
|
@ -31,14 +31,14 @@ |
|
|
|
<div> |
|
|
|
{if="$c->getUser()->hasPubsub()"} |
|
|
|
{if="$subscription == null"} |
|
|
|
<button class="button oppose color gray" title="{$c->__('communityheader.subscribe')}" |
|
|
|
<button class="button oppose color green" title="{$c->__('communityheader.subscribe')}" |
|
|
|
onclick="CommunityHeader_ajaxAskSubscribe('{$server|echapJS}', '{$node|echapJS}')"> |
|
|
|
<i class="material-icons">add</i> <span class="on_desktop">{$c->__('communityheader.subscribe')}</span> |
|
|
|
<i class="material-icons">bookmark_add</i> <span class="on_desktop">{$c->__('communityheader.subscribe')}</span> |
|
|
|
</button> |
|
|
|
{else} |
|
|
|
<button class="button oppose color green" title="{$c->__('communityheader.unsubscribe')}" |
|
|
|
<button class="button oppose color gray" title="{$c->__('communityheader.unsubscribe')}" |
|
|
|
onclick="CommunityHeader_ajaxAskUnsubscribe('{$server|echapJS}', '{$node|echapJS}')"> |
|
|
|
<i class="material-icons">bookmark</i> <span class="on_desktop">{$c->__('communityheader.unsubscribe')}</span> |
|
|
|
<i class="material-icons">bookmark_remove</i> <span class="on_desktop">{$c->__('communityheader.unsubscribe')}</span> |
|
|
|
</button> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
|