Снорк (nely_snork) wrote in changelog,
Снорк
nely_snork
changelog

[livejournal] r17226: LJSUP-6650: Bugfix: unnecessary error me...

Committer: narefieva
LJSUP-6650: Bugfix: unnecessary error message highlighted for logged users
U   trunk/templates/CommentForm/Author-Anonymous.tmpl
Modified: trunk/templates/CommentForm/Author-Anonymous.tmpl
===================================================================
--- trunk/templates/CommentForm/Author-Anonymous.tmpl	2010-08-30 09:00:04 UTC (rev 17225)
+++ trunk/templates/CommentForm/Author-Anonymous.tmpl	2010-08-30 10:02:00 UTC (rev 17226)
@@ -24,7 +24,9 @@
     <td class="b-postform-radio">(  )</td>
     <td class="b-postform-data b-postform-active" colspan='2'>
         <span class="i-postform-label i-postform-disabled"><b><TMPL_VAR expr="ml('/talkpost.bml.opt.anonymous')"></b></span>
-        <span class="i-bubble b-bubble-alert b-postform-openid"><i class="i-bubble-arrow-border"></i><i class="i-bubble-arrow"></i><TMPL_VAR expr="ml('/talkpost.bml.opt.noanonpost')"></span>
+        <TMPL_UNLESS remote_username>
+            <span class="i-bubble b-bubble-alert b-postform-openid"><i class="i-bubble-arrow-border"></i><i class="i-bubble-arrow"></i><TMPL_VAR expr="ml('/talkpost.bml.opt.noanonpost')"></span>
+        </TMPL_UNLESS>
     </td>
     </tr>
 <TMPL_ELSIF friends_can_comment>
@@ -33,7 +35,9 @@
     <td class="b-postform-radio">(  )</td>
     <td class="b-postform-data b-postform-active" colspan='2'>
         <span class="i-postform-label i-postform-disabled"><b><TMPL_VAR expr="ml('/talkpost.bml.opt.anonymous')"></b></span>
-        <span class="i-bubble b-bubble-alert b-postform-openid"><i class="i-bubble-arrow-border"></i><i class="i-bubble-arrow"></i><TMPL_VAR ml_friendsonly></span>
+        <TMPL_IF is_friend>
+            <span class="i-bubble b-bubble-alert b-postform-openid"><i class="i-bubble-arrow-border"></i><i class="i-bubble-arrow"></i><TMPL_VAR ml_friendsonly></span>
+        </TMPL_IF>
     </td>
     </tr>
 </TMPL_IF>

Tags: livejournal, nely_snork, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments