Skip to content

Commit

Permalink
Merge pull request #887 from galaxyproject/add_repeat_icon
Browse files Browse the repository at this point in the history
Add icon for repeat parameters in training
  • Loading branch information
jmchilton committed Nov 8, 2018
2 parents b334501 + 1c99e15 commit 6696c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions planemo/training/tool_input.py
Expand Up @@ -17,7 +17,7 @@
"""

INPUT_ADD_REPEAT = """
>{{space}}- Click on *"Insert {{repeat_label}}"*:
>{{space}}- {{ '{%' }} icon param-repeat {{ '%}' }} *"Insert {{repeat_label}}"*
"""

SPACE = ' '
Expand Down Expand Up @@ -142,10 +142,6 @@ def get_formatted_repeat_desc(self):
repeat_paramlist += templates.render(INPUT_ADD_REPEAT, **{
'space': SPACE * (self.level),
'repeat_label': self.tool_inp_desc['title']})
# add description of parameters in the repeat
repeat_paramlist += templates.render(INPUT_SECTION, **{
'space': SPACE * (self.level),
'section_label': "%s: %s" % (ind + 1, self.tool_inp_desc['title'])})
repeat_paramlist += paramlist_in_repeat
self.level = cur_level
self.wf_param_values = tmp_wf_param_values
Expand Down
4 changes: 1 addition & 3 deletions tests/test_training_tool_input.py
Expand Up @@ -176,10 +176,8 @@ def test_ToolInput_get_formatted_repeat_desc():
force_default=False)
repeat_desc = tool_input.get_formatted_repeat_desc()
assert '> - In *"' in repeat_desc
assert '> - Click on' in repeat_desc
assert '> - In *"1:' in repeat_desc
assert '> - {% icon param-repeat %} *"Insert' in repeat_desc
assert '> -' in repeat_desc
assert '> - In *"2:' in repeat_desc


def test_ToolInput_get_formatted_other_param_desc():
Expand Down

0 comments on commit 6696c15

Please sign in to comment.