1 new changeset in galaxy-central:
http://bitbucket.org/galaxy/galaxy-central/changeset/dc8f4f649a43/ changeset: dc8f4f649a43 user: greg date: 2011-07-29 20:33:34 summary: Tool shed template fixes: replace 1/2 template somehow removed in change set 5830, fix pop-up menu code for tools. affected #: 4 files (1.5 KB)
--- a/templates/webapps/community/repository/common.mako Fri Jul 29 11:26:09 2011 -0400 +++ b/templates/webapps/community/repository/common.mako Fri Jul 29 14:33:34 2011 -0400 @@ -50,4 +50,39 @@ onActivate: function(dtnode) { var cell = $("#file_contents"); var selected_value; - \ No newline at end of file + if (dtnode.data.key == 'root') { + selected_value = "${repository.repo_path}/"; + } else { + selected_value = dtnode.data.key; + }; + if (selected_value.charAt(selected_value.length-1) != '/') { + // Make ajax call + $.ajax( { + type: "POST", + url: "${h.url_for( controller='repository', action='get_file_contents' )}", + dataType: "json", + data: { file_path: selected_value }, + success : function ( data ) { + cell.html( '<label>'+data+'</label>' ) + } + }); + } else { + cell.html( '' ); + }; + }, + }); + }); + </script> +</%def> + +<%def name="render_clone_str( repository )"> + <% + protocol, base = trans.request.base.split( '://' ) + if trans.user: + username = '%s@' % trans.user.username + else: + username = '' + clone_str = '%s://%s%s/repos/%s/%s' % ( protocol, username, base, repository.user.username, repository.name ) + %> + hg clone <a href="${clone_str}">${clone_str}</a> +</%def>
--- a/templates/webapps/community/repository/manage_repository.mako Fri Jul 29 11:26:09 2011 -0400 +++ b/templates/webapps/community/repository/manage_repository.mako Fri Jul 29 14:33:34 2011 -0400 @@ -177,12 +177,12 @@ %for tool_dict in tool_dicts: <tr><td> - <div style="float: left; margin-left: 1px;" class="menubutton split popup" id="tool-${tool_dict[ 'id' ]}-popup"> + <div style="float: left; margin-left: 1px;" class="menubutton split popup" id="tool-${tool_dict[ 'id' ].replace( ' ', '_' )}-popup"><a class="view-info" href="${h.url_for( controller='repository', action='display_tool', repository_id=trans.security.encode_id( repository.id ), tool_config=tool_dict[ 'tool_config' ] )}"> ${tool_dict[ 'name' ]} </a></div> - <div popupmenu="tool-${tool_dict[ 'id' ]}-popup"> + <div popupmenu="tool-${tool_dict[ 'id' ].replace( ' ', '_' )}-popup"><a class="action-button" href="${h.url_for( controller='repository', action='view_tool_metadata', repository_id=trans.security.encode_id( repository.id ), changeset_revision=repository.tip, tool_id=tool_dict[ 'id' ] )}">View all metadata for this tool</a></div></td>
--- a/templates/webapps/community/repository/view_repository.mako Fri Jul 29 11:26:09 2011 -0400 +++ b/templates/webapps/community/repository/view_repository.mako Fri Jul 29 14:33:34 2011 -0400 @@ -170,12 +170,12 @@ %for tool_dict in tool_dicts: <tr><td> - <div style="float: left; margin-left: 1px;" class="menubutton split popup" id="tool-${repository.id}-popup"> + <div style="float: left; margin-left: 1px;" class="menubutton split popup" id="tool-${tool_dict[ 'id' ].replace( ' ', '_' )}-popup"><a class="view-info" href="${h.url_for( controller='repository', action='display_tool', repository_id=trans.security.encode_id( repository.id ), tool_config=tool_dict[ 'tool_config' ] )}"> ${tool_dict[ 'name' ]} </a></div> - <div popupmenu="tool-${repository.id}-popup"> + <div popupmenu="tool-${tool_dict[ 'id' ].replace( ' ', '_' )}-popup"><a class="action-button" href="${h.url_for( controller='repository', action='view_tool_metadata', repository_id=trans.security.encode_id( repository.id ), changeset_revision=repository.tip, tool_id=tool_dict[ 'id' ] )}">View all metadata for this tool</a></div></td>
--- a/templates/webapps/community/repository/view_tool_metadata.mako Fri Jul 29 11:26:09 2011 -0400 +++ b/templates/webapps/community/repository/view_tool_metadata.mako Fri Jul 29 14:33:34 2011 -0400 @@ -111,7 +111,7 @@ </div><div class="form-row"><label>Command:</label> - ${tool.command} + <pre>${tool.command}</pre><div style="clear: both"></div></div><div class="form-row">
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
galaxy-commits@lists.galaxyproject.org