]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 364169 - "There is a "show votes for this bug" link when the bug has no votes...
authorreed%reedloden.com <>
Wed, 27 Dec 2006 00:41:47 +0000 (00:41 +0000)
committerreed%reedloden.com <>
Wed, 27 Dec 2006 00:41:47 +0000 (00:41 +0000)
template/en/default/bug/edit.html.tmpl

index 5f9d4ccb9429f5bb8cc0c31bce5620e27602ac88..749cb86782d29a4d7b6d26fc17fddd0e3bbd11fb 100644 (file)
             <br>
             <b><a href="page.cgi?id=voting.html">Votes</a></b>: [% bug.votes %]
             <ul>
-              <li><a href="votes.cgi?action=show_bug&amp;bug_id=[% bug.bug_id %]">Show
-                           votes for this [% terms.bug %]</a></li>
+              [% IF bug.votes %]
+                <li><a href="votes.cgi?action=show_bug&amp;bug_id=[% bug.bug_id %]">Show
+                             votes for this [% terms.bug %]</a></li>
+              [% END %]
               <li><a href="votes.cgi?action=show_user&amp;bug_id=[% bug.bug_id %]#vote_[% bug.bug_id %]">Vote
                            for this [% terms.bug %]</a></li>
             </ul>