-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from galaxyproject/local-tools-sections
Support installing local tools into sections
- Loading branch information
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<toolbox monitor="true" tool_path="{{ galaxy_local_tools_dir }}"> | ||
{% for tool in galaxy_local_tools %} | ||
{% if tool.endswith('.xml') %} | ||
<tool file="{{ tool }}" /> | ||
{% if tool is not mapping %} | ||
{% set tool = {'section_name': 'Local Tools', 'file': tool} %} | ||
{% endif %} | ||
{% if tool.file.endswith('.xml') %} | ||
<section id="{{ tool.section_id | default(tool.section_name | regex_replace('[^A-Za-z0-9]', '_') | lower) }}" name="{{ tool.section_name }}"> | ||
<tool file="{{ tool.file }}" /> | ||
</section> | ||
{% endif %} | ||
{% endfor %} | ||
</toolbox> |