https://github.com/galaxyproject/galaxy
Tip revision: dc6bd057627bff64691e9d2c53ce833403bbb360 authored by John Chilton on 28 October 2020, 19:49:21 UTC
Version 20.9.1 of util (tag galaxy-util-20.9.1).
Version 20.9.1 of util (tag galaxy-util-20.9.1).
Tip revision: dc6bd05
tool_shed_rating.mako
<%
label = "ratings"
if num_ratings == 1:
label = "rating"
%>
<div>
<input name="star1-${item_id}" type="radio" class="community_rating_star star" disabled="disabled" value="1"
%if ave_item_rating > 0 and ave_item_rating <= 1.5:
checked="checked"
%endif
/>
<input name="star1-${item_id}" type="radio" class="community_rating_star star" disabled="disabled" value="2"
%if ave_item_rating > 1.5 and ave_item_rating <= 2.5:
checked="checked"
%endif
/>
<input name="star1-${item_id}" type="radio" class="community_rating_star star" disabled="disabled" value="3"
%if ave_item_rating > 2.5 and ave_item_rating <= 3.5:
checked="checked"
%endif
/>
<input name="star1-${item_id}" type="radio" class="community_rating_star star" disabled="disabled" value="4"
%if ave_item_rating > 3.5 and ave_item_rating <= 4.5:
checked="checked"
%endif
/>
<input name="star1-${item_id}" type="radio" class="community_rating_star star" disabled="disabled" value="5"
%if ave_item_rating > 4.5:
checked="checked"
%endif
/>
</div>