<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <%namespace file="/webapps/tool_shed/common/common.mako" import="*" /> <%namespace file="/webapps/tool_shed/common/repository_actions_menu.mako" import="render_tool_shed_repository_actions" /> <% from galaxy.web.form_builder import CheckboxField from tool_shed.grids.util import build_approved_select_field from tool_shed.util.container_util import STRSEP %> <%def name="stylesheets()"> ${h.css('base','jquery.rating')} <%def name="javascripts()"> ${parent.javascripts()} ${h.js( "libs/jquery/jquery.rating" )} ${render_tool_shed_repository_actions( repository=repository, changeset_revision=review.changeset_revision )} %if message: ${render_msg( message, status )} %endif
My review of repository '${repository.name | h}'
${changeset_revision_label}
${repository.user.username | h}
${repository.description | h}
${revision_approved_select_field.get_html()}
Individual components below may be approved without approving the repository revision.
All changes made on this page will be saved when any Save button is clicked.
%for component_name, component_review_dict in components_dict.items(): <% component = component_review_dict[ 'component' ] encoded_component_id = trans.security.encode_id( component.id ) component_review = component_review_dict[ 'component_review' ] if component_review: comment = component_review.comment or '' rating = component_review.rating approved_select_field_selected_value = component_review.approved private = component_review.private else: comment = '' rating = 0 approved_select_field_selected_value = None private = False # Initialize Approved select field. approved_select_field_name = '%s%sapproved' % ( component_name, STRSEP ) approved_select_field = build_approved_select_field( trans, name=approved_select_field_name, selected_value=approved_select_field_selected_value, for_component=True ) # Initialize Private check box. private_check_box_name = '%s%sprivate' % ( component_name, STRSEP ) private_check_box = CheckboxField( name=private_check_box_name, checked=private ) # Initialize star rating. rating_name = '%s%srating' % ( component_name, STRSEP ) # Initialize comment text area. comment_name = '%s%scomment' % ( component_name, STRSEP ) # Initialize the component id form field name. component_id_name = '%s%scomponent_id' % ( component_name, STRSEP ) # Initialize the Save button. review_button_name = '%s%sreview_button' % ( component_name, STRSEP ) %> %endfor
${component.name | h} ${component.description | h}
${private_check_box.get_html()}
A private review can be accessed only by the owner of the repository and authorized repository reviewers.
%if component_review:
%else: %endif
${approved_select_field.get_html()}
${render_star_rating( rating_name, rating )}
Rate this component only - the average of all component ratings defines the value of the repository rating.
All changes made on this page will be saved when any Save button is clicked.