<%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/repository/common.mako" import="render_clone_str" /> <%namespace file="/webapps/tool_shed/common/repository_actions_menu.mako" import="render_tool_shed_repository_actions" /> <% is_new = repository.is_new( trans.app ) can_push = trans.app.security_agent.can_push( trans.app, trans.user, repository ) can_download = not is_new and ( not is_malicious or can_push ) %> <%! def inherit(context): if context.get('use_panels'): return '/webapps/tool_shed/base_panels.mako' else: return '/base.mako' %> <%inherit file="${inherit(context)}"/> <%def name="stylesheets()"> ${parent.stylesheets()} ${h.css( "library" )} <%def name="javascripts()"> ${parent.javascripts()} ${h.js( "libs/jquery/jquery.rating" )} ${render_tool_shed_repository_actions( repository=repository, metadata=metadata )} %if message: ${render_msg( message, status )} %endif %if can_download:
Repository '${repository.name | h}'
${render_clone_str( repository )}

%endif

<% from tool_shed.util.hg_util import get_readable_ctx_date changeset_revision_date = get_readable_ctx_date( ctx ) if can_download: title_str = 'Changeset %s:%s (%s)' % ( ctx.rev(), ctx, changeset_revision_date ) else: title_str = '%s changeset %s:%s (%s)' % ( repository.name, ctx.rev(), ctx, changeset_revision_date ) %>
${title_str}
%if prev or next: %endif %if modified: %endif %if added: %endif %if removed: %endif %if deleted: %endif %if unknown: %endif %if ignored: %endif %if clean: %endif %for diff in diffs: <% # Read at most the first 10 lines of diff to determine the anchor ctr = 0 lines = diff.split( '\n' ) anchor_str = '' for line in lines: if ctr > 9: break for anchor in anchors: if line.find( anchor ) >= 0: anchor_str = '%s' % ( anchor, anchor ) break ctr += 1 %> %endfor
%if prev: Previous changeset ${prev} %endif %if next: Next changeset ${next} %endif
Commit message:
${ util.unicodify( ctx.description() ) | h}
modified: %for item in modified:
${ util.unicodify( item ) | h} %endfor
added: %for item in added:
${ util.unicodify( item ) | h} %endfor
removed: %for item in removed:
${ util.unicodify( item ) | h} %endfor
deleted: %for item in deleted:
${ util.unicodify( item ) | h} %endfor
unknown: %for item in unknown:
${ util.unicodify( item ) | h} %endfor }
ignored: %for item in ignored:
${ util.unicodify( item ) | h} %endfor
clean: %for item in clean:
${ util.unicodify( item ) | h} %endfor
${ util.unicodify( anchor_str ) }
${ util.unicodify( diff ) }