]> ruin.nu Git - ndwebbie.git/commitdiff
Only show unread link for logged in users
authorMichael Andreen <harv@ruin.nu>
Wed, 28 Jul 2010 19:46:34 +0000 (21:46 +0200)
committerMichael Andreen <harv@ruin.nu>
Wed, 28 Jul 2010 19:46:34 +0000 (21:46 +0200)
root/src/forum/thread.tt2

index 19c3589a81e7f52395706f60c1bc8ae857ffae67..40163cd583e6948651064e7fa44fb738ff16d1d4 100644 (file)
        [% END %]
 <fieldset class="forum-post">
 <legend class="forum-post-header"><b>[% post.username %]</b> : [% post.time %]
-       <a href="[% c.uri_for('markPostAsUnread',post.fpid) %]">Unread from here</a></legend>
+       [% IF c.user.id %]
+       <a href="[% c.uri_for('markPostAsUnread',post.fpid) %]">Unread from here</a>
+       [% END %]
+</legend>
 <div class="forum-post-body">[% post.message %]</div>
 </fieldset>
 [% END %]