Fixes link to email type preferences, and limit it to user with access to our main...
authorStéphane Jacob <sj@m4x.org>
Mon, 9 May 2011 12:50:25 +0000 (14:50 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 9 May 2011 15:12:38 +0000 (17:12 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/newsletter/index.tpl

index 990722c..6bcb7d5 100644 (file)
 <h2>Ton statut</h2>
 
 {if $nl->subscriptionState()}
+{if $smarty.session.user->type != 'xnet'}
 <p>
-Tu es actuellement inscrit à la {$nl->name} (pour choisir le format HTML ou texte, rends toi sur la page <a href='prefs'>des préférences</a>).
+Tu es actuellement inscrit à la {$nl->name} (pour choisir le format HTML ou texte, rends toi sur la page <a href="https://{$globals->core->secure_domain}/prefs">des préférences</a>).
 </p>
+{/if}
 <div class='center'>
   [<a href='{$nl->prefix()}/out'>{icon name=delete} me désinscrire de la {$nl->name}</a>]
 </div>