mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Remove more unused makos from tool shed.
This commit is contained in:
-94
@@ -1,94 +0,0 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%namespace file="/admin/tool_shed_repository/repository_actions_menu.mako" import="*" />
|
||||
<%namespace file="/message.mako" import="render_msg" />
|
||||
<%namespace file="/webapps/tool_shed/common/common.mako" import="*" />
|
||||
|
||||
<% import os %>
|
||||
|
||||
${render_galaxy_repository_actions( repository )}
|
||||
|
||||
%if message:
|
||||
${render_msg( message, status )}
|
||||
%endif
|
||||
|
||||
<div class="warningmessage">
|
||||
<p>
|
||||
The updates to the <b>${repository.name}</b> repository require the following packages. Click the <b>Install</b> button to install them.
|
||||
Installing some packages may take a while, but you can continue to use Galaxy during installation.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form name="install_tool_dependencies_with_update" id="install_tool_dependencies_with_update" action="${h.url_for( controller='admin_toolshed', action='install_tool_dependencies_with_update' )}" method="post" >
|
||||
<input type="hidden" name="updating_repository_id" value="${updating_repository_id|h}"/>
|
||||
<input type="hidden" name="updating_to_ctx_rev" value="${updating_to_ctx_rev|h}"/>
|
||||
<input type="hidden" name="updating_to_changeset_revision" value="${updating_to_changeset_revision|h}"/>
|
||||
<input type="hidden" name="encoded_updated_metadata" value="${encoded_updated_metadata|h}"/>
|
||||
<input type="hidden" name="encoded_relative_install_dir" value="${encoded_relative_install_dir|h}"/>
|
||||
<input type="hidden" name="encoded_tool_dependencies_dict" value="${encoded_tool_dependencies_dict|h}"/>
|
||||
%if tool_dependencies_dict:
|
||||
%if install_tool_dependencies_check_box is not None:
|
||||
<div class="form-row">
|
||||
<label>Handle tool dependencies?</label>
|
||||
<% disabled = trans.app.tool_dependency_dir is None %>
|
||||
${render_checkbox(install_tool_dependencies_check_box, disabled=disabled)}
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
%if disabled:
|
||||
Set the tool_dependency_dir configuration value in your Galaxy config to automatically handle tool dependencies.
|
||||
%else:
|
||||
Un-check to skip automatic handling of these tool dependencies.
|
||||
%endif
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
%endif
|
||||
<div class="form-row">
|
||||
<table class="grid">
|
||||
<tr><td colspan="4" bgcolor="#D8D8D8"><b>New tool dependencies included in update</b></td></tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Version</th>
|
||||
<th>Install directory</th>
|
||||
</tr>
|
||||
%for key, requirements_dict in tool_dependencies_dict.items():
|
||||
<%
|
||||
readme_text = None
|
||||
if key == 'set_environment':
|
||||
key_name = ', '.join( [ environment_variable[ 'name' ] for environment_variable in requirements_dict ] )
|
||||
key_version = ''
|
||||
install_dir = ''
|
||||
else:
|
||||
key_items = key.split( '/' )
|
||||
key_name = key_items[ 0 ]
|
||||
key_version = key_items[ 1 ]
|
||||
readme_text = requirements_dict.get( 'readme', None )
|
||||
install_dir = os.path.join( trans.app.tool_dependency_dir,
|
||||
key_name,
|
||||
key_version,
|
||||
repository.owner,
|
||||
repository.name,
|
||||
repository.installed_changeset_revision )
|
||||
%>
|
||||
%if not os.path.exists( install_dir ):
|
||||
<tr>
|
||||
<td>${key_name|h}</td>
|
||||
<td>${key_version|h}</td>
|
||||
<td>${install_dir|h}</td>
|
||||
</tr>
|
||||
%if readme_text:
|
||||
<tr><td colspan="4" bgcolor="#FFFFCC">${key_name|h} ${key_version|h} requirements and installation information</td></tr>
|
||||
<tr><td colspan="4"><pre>${readme_text}</pre></td></tr>
|
||||
%endif
|
||||
%endif
|
||||
%endfor
|
||||
</table>
|
||||
<div style="clear: both"></div>
|
||||
</div>
|
||||
%endif
|
||||
<div class="form-row">
|
||||
<input type="submit" name="install_tool_dependencies_with_update_button" value="Install"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
-70
@@ -1,70 +0,0 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%namespace file="/message.mako" import="render_msg" />
|
||||
<%namespace file="/admin/tool_shed_repository/common.mako" import="*" />
|
||||
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
${repository_installation_status_updater()}
|
||||
${repository_installation_updater()}
|
||||
${self.repository_installation_javascripts()}
|
||||
</%def>
|
||||
|
||||
<%def name="repository_installation_javascripts()">
|
||||
<script type="text/javascript">
|
||||
%if context.get("initiate_repository_installation_ids"):
|
||||
$(document).ready(function( ){
|
||||
initiate_repository_installation( "${initiate_repository_installation_ids}", "${encoded_kwd}", "${reinstalling}" );
|
||||
});
|
||||
%endif
|
||||
var initiate_repository_installation = function ( iri_ids, encoded_kwd, reinstalling ) {
|
||||
// Make ajax call
|
||||
$.ajax( {
|
||||
type: "POST",
|
||||
url: "${h.url_for( controller='admin_toolshed', action='install_repositories' )}",
|
||||
dataType: "html",
|
||||
data: { tool_shed_repository_ids: iri_ids, encoded_kwd: encoded_kwd, reinstalling: reinstalling },
|
||||
success : function ( data ) {
|
||||
console.log( "Initializing repository installation succeeded" );
|
||||
}
|
||||
});
|
||||
};
|
||||
</script>
|
||||
</%def>
|
||||
|
||||
%if context.get("message"):
|
||||
${render_msg( message, status )}
|
||||
%endif
|
||||
|
||||
%if tool_shed_repositories:
|
||||
<div class="card">
|
||||
<div class="card-header">Monitor installing tool shed repositories</div>
|
||||
<div class="card-body overflow-auto">
|
||||
<table class="grid">
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>Description</td>
|
||||
<td>Owner</td>
|
||||
<td>Revision</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
%for tool_shed_repository in tool_shed_repositories:
|
||||
<%
|
||||
encoded_repository_id = trans.security.encode_id( tool_shed_repository.id )
|
||||
ids_of_tool_dependencies_missing_or_being_installed = [ trans.security.encode_id( td.id ) for td in tool_shed_repository.tool_dependencies_missing_or_being_installed ]
|
||||
link_to_manage_tool_dependencies = tool_shed_repository.status in [ trans.install_model.ToolShedRepository.installation_status.INSTALLING_TOOL_DEPENDENCIES ]
|
||||
%>
|
||||
<tr>
|
||||
<td>${tool_shed_repository.name|h}</td>
|
||||
<td>${tool_shed_repository.description}</td>
|
||||
<td>${tool_shed_repository.owner}</td>
|
||||
<td>${tool_shed_repository.changeset_revision}</td>
|
||||
<td><div id="RepositoryStatus-${encoded_repository_id}">${tool_shed_repository.status|h}</div></td>
|
||||
</tr>
|
||||
%endfor
|
||||
</table>
|
||||
<br clear="left"/>
|
||||
</div>
|
||||
</div>
|
||||
%else:
|
||||
${render_msg("There is no repository being installed.", "info")}
|
||||
%endif
|
||||
-74
@@ -1,74 +0,0 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%namespace file="/message.mako" import="render_msg" />
|
||||
<%namespace file="/admin/tool_shed_repository/repository_actions_menu.mako" import="*" />
|
||||
|
||||
<%def name="stylesheets()">
|
||||
${parent.stylesheets()}
|
||||
${h.css( "library" )}
|
||||
</%def>
|
||||
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
</%def>
|
||||
|
||||
${render_galaxy_repository_actions( repository )}
|
||||
|
||||
%if message:
|
||||
${render_msg( message, status )}
|
||||
%endif
|
||||
|
||||
<div class="warningmessage">
|
||||
<p>
|
||||
Purging the repository named <b>${repository.name|h}</b> will result in deletion of all records for the
|
||||
following associated items from the database. Click the <b>Purge</b> button to purge this repository
|
||||
and its associated items.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">Purge tool shed repository <b>${repository.name|h}</b></div>
|
||||
<form name="purge_repository" id="purge_repository" action="${h.url_for( controller='admin_toolshed', action='purge_repository', id=trans.security.encode_id( repository.id ) )}" method="post" >
|
||||
<%
|
||||
tool_versions = 0
|
||||
tool_dependencies = 0
|
||||
required_repositories = 0
|
||||
orphan_repository_repository_dependency_association_records = 0
|
||||
orphan_repository_dependency_records = 0
|
||||
# Count this repository's tool version lineage chain links that will be purged.
|
||||
for tool_version in repository.tool_versions:
|
||||
for tool_version_association in tool_version.parent_tool_association:
|
||||
tool_versions += 1
|
||||
for tool_version_association in tool_version.child_tool_association:
|
||||
tool_versions += 1
|
||||
tool_versions += 1
|
||||
# Count this repository's associated tool dependencies that will be purged.
|
||||
for tool_dependency in repository.tool_dependencies:
|
||||
tool_dependencies += 1
|
||||
# Count this repository's associated required repositories that will be purged.
|
||||
for rrda in repository.required_repositories:
|
||||
required_repositories += 1
|
||||
# Count any "orphan" repository_dependency records associated with the repository but not with any
|
||||
# repository_repository_dependency_association records that will be purged.
|
||||
for orphan_repository_dependency in \
|
||||
trans.sa_session.query( trans.app.install_model.RepositoryDependency ) \
|
||||
.filter( trans.app.install_model.RepositoryDependency.table.c.tool_shed_repository_id == repository.id ):
|
||||
for orphan_rrda in \
|
||||
trans.sa_session.query( trans.app.install_model.RepositoryRepositoryDependencyAssociation ) \
|
||||
.filter( trans.app.install_model.RepositoryRepositoryDependencyAssociation.table.c.repository_dependency_id == orphan_repository_dependency.id ):
|
||||
orphan_repository_repository_dependency_association_records += 1
|
||||
orphan_repository_dependency_records += 1
|
||||
%>
|
||||
<table class="grid">
|
||||
<tr><td>Tool version records</td><td>${tool_versions|h}</td><tr>
|
||||
<tr><td>Tool dependency records</td><td>${tool_dependencies|h}</td><tr>
|
||||
<tr><td>Repository dependency records</td><td>${required_repositories|h}</td><tr>
|
||||
<tr><td>Orphan repository_repository_dependency_association records</td><td>${orphan_repository_repository_dependency_association_records|h}</td><tr>
|
||||
<tr><td>Orphan repository_dependency records</td><td>${orphan_repository_dependency_records|h}</td><tr>
|
||||
</table>
|
||||
<div style="clear: both"></div>
|
||||
<div class="form-row">
|
||||
<input type="submit" name="purge_repository_button" value="Purge"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
-101
@@ -1,101 +0,0 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%namespace file="/message.mako" import="render_msg" />
|
||||
<%namespace file="/admin/tool_shed_repository/common.mako" import="render_dependencies_section" />
|
||||
<%namespace file="/admin/tool_shed_repository/common.mako" import="render_readme_section" />
|
||||
<%namespace file="/webapps/tool_shed/repository/common.mako" import="*" />
|
||||
<%namespace file="/webapps/tool_shed/common/common.mako" import="*" />
|
||||
|
||||
<%def name="stylesheets()">
|
||||
${parent.stylesheets()}
|
||||
${h.css( "library" )}
|
||||
</%def>
|
||||
|
||||
<%def name="javascripts()">
|
||||
${parent.javascripts()}
|
||||
${container_javascripts()}
|
||||
</%def>
|
||||
|
||||
%if message:
|
||||
${render_msg( message, status )}
|
||||
%endif
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form name="reselect_tool_panel_section" id="reselect_tool_panel_section" action="${h.url_for( controller='admin_toolshed', action='reinstall_repository', id=trans.security.encode_id( repository.id ) )}" method="post" >
|
||||
<div class="form-row">
|
||||
<input type="hidden" name="repo_info_dict" value="${encoded_repo_info_dict}" />
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
<% readme_files_dict = containers_dict.get( 'readme_files', None ) %>
|
||||
%if readme_files_dict:
|
||||
<div class="form-row">
|
||||
<table class="colored" width="100%">
|
||||
<th bgcolor="#EBD9B2">Repository README files - may contain important installation or license information</th>
|
||||
</table>
|
||||
</div>
|
||||
${render_readme_section( containers_dict )}
|
||||
<div style="clear: both"></div>
|
||||
%endif
|
||||
%if has_repository_dependencies or includes_tool_dependencies:
|
||||
<div class="form-row">
|
||||
<table class="colored" width="100%">
|
||||
<th bgcolor="#EBD9B2">Confirm dependency installation</th>
|
||||
</table>
|
||||
</div>
|
||||
${render_dependencies_section( install_resolver_dependencies_check_box, install_repository_dependencies_check_box, install_tool_dependencies_check_box, containers_dict, revision_label=None, export=False )}
|
||||
%endif
|
||||
%if shed_tool_conf_select_field:
|
||||
<div class="form-row">
|
||||
<table class="colored" width="100%">
|
||||
<th bgcolor="#EBD9B2">Choose the configuration file whose tool_path setting will be used for installing repositories</th>
|
||||
</table>
|
||||
</div>
|
||||
<%
|
||||
if len( shed_tool_conf_select_field.options ) == 1:
|
||||
select_help = "Your Galaxy instance is configured with 1 shed-related tool configuration file, so repositories will be "
|
||||
select_help += "installed using its <b>tool_path</b> setting."
|
||||
else:
|
||||
select_help = "Your Galaxy instance is configured with %d shed-related tool configuration files, " % len( shed_tool_conf_select_field.options )
|
||||
select_help += "so select the file whose <b>tool_path</b> setting you want used for installing repositories."
|
||||
%>
|
||||
<div class="form-row">
|
||||
<label>Shed tool configuration file:</label>
|
||||
${render_select(shed_tool_conf_select_field)}
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
${select_help|h}
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
%else:
|
||||
<input type="hidden" name="shed_tool_conf" value="${shed_tool_conf|h}"/>
|
||||
%endif
|
||||
%if includes_tools_for_display_in_tool_panel:
|
||||
<div style="clear: both"></div>
|
||||
<div class="form-row">
|
||||
${render_checkbox(no_changes_check_box)}
|
||||
<label style="display: inline;">No changes</label>
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
Uncheck and select a different tool panel section to load the tools into a different section in the tool panel.
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label>Add new tool panel section:</label>
|
||||
<input name="new_tool_panel_section_label" type="textfield" value="" size="40"/>
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
Add a new tool panel section to contain the installed tools (optional).
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label>Select existing tool panel section:</label>
|
||||
${render_select(tool_panel_section_select_field)}
|
||||
<div class="toolParamHelp" style="clear: both;">
|
||||
Choose an existing section in your tool panel to contain the installed tools (optional).
|
||||
</div>
|
||||
</div>
|
||||
%endif
|
||||
<div class="form-row">
|
||||
<input type="submit" name="select_tool_panel_section_button" value="Install"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user