<%namespace file="/message.mako" import="render_msg" /> <%namespace file="/webapps/community/common/common.mako" import="*" /> <% from galaxy.web.framework.helpers import time_ago from urllib import quote_plus if cntrller in [ 'tool' ] and can_edit: menu_label = 'Edit information or submit for approval' else: menu_label = 'Edit information' %> <%! def inherit(context): if context.get('use_panels'): return '/webapps/community/base_panels.mako' else: return '/base.mako' %> <%inherit file="${inherit(context)}"/> <%def name="stylesheets()"> ${parent.stylesheets()} ${h.css( "jquery.rating" )} <%def name="javascripts()"> ${parent.javascripts()} ${h.js( "jquery.rating" )} <%def name="title()">View Tool

View Tool

${tool.get_state_message()}

%if message: ${render_msg( message, status )} %endif %if can_view: %if tool.is_rejected:
Reason for rejection
${reason_for_rejection}

%endif

${tool.name}
${tool.tool_id}
${tool.version}
${tool.description}
%if tool.user_description:
${tool.user_description}
%endif
${tool.user.username}
${time_ago( tool.create_time )}
%if categories:
    %for category in categories:
  • ${category.name}
  • %endfor
%else: none set %endif
%if len( visible_versions ) > 1:
    %for version in visible_versions: %if version == tool:
  • ${version.version} (this version)
  • %else:
  • ${version.version}
  • %endif %endfor
%endif

Tool Contents

%if tool.ratings:

Rating
${num_ratings}
${render_star_rating( 'avg_rating', avg_rating, disabled=True )}

%if display_reviews: <% count = 0 %> %for review in tool.ratings: <% count += 1 name = 'rating%d' % count %> %endfor
Rating Comments Reviewed User
${render_star_rating( name, review.rating, disabled=True )} ${review.comment} ${time_ago( review.update_time )} ${review.user.username}
%else: %endif
%endif

%endif