https://github.com/galaxyproject/galaxy
Tip revision: a29ebebbba45fdcdcd66b17ea0fdf052ee31904d authored by John Chilton on 15 October 2020, 16:17:01 UTC
Version 20.9.0 of job-execution (tag galaxy-job-execution-20.9.0).
Version 20.9.0 of job-execution (tag galaxy-job-execution-20.9.0).
Tip revision: a29ebeb
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>