commit/galaxy-central: greg: Fix for rating a tool in the tool shed.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/b6beb68c36b0/ changeset: r5364:b6beb68c36b0 user: greg date: 2011-04-11 16:37:14 summary: Fix for rating a tool in the tool shed. affected #: 1 file (206 bytes) --- a/templates/webapps/community/common/rate_tool.mako Mon Apr 11 09:39:55 2011 -0400 +++ b/templates/webapps/community/common/rate_tool.mako Mon Apr 11 10:37:14 2011 -0400 @@ -146,7 +146,13 @@ </div><div class="form-row"><label>Your Rating:</label> - ${render_star_rating( 'rating', tra.rating )} + <% + if tra and tra.rating: + rating = tra.rating + else: + rating = 0 + %> + ${render_star_rating( 'rating', rating )} <div style="clear: both"></div></div><div class="form-row"> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket