diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py
index 3c0eb30631c..81574a3986f 100644
--- a/lib/galaxy/tools/__init__.py
+++ b/lib/galaxy/tools/__init__.py
@@ -676,7 +676,7 @@ class Tool:
# on the standard run form) or "URL" (a parameter provided by
# external data source tools).
if "runtool_btn" not in incoming and "URL" not in incoming:
- return "tool_form.tmpl", dict( errors={}, tool_state=state, param_values={}, incoming={} )
+ return "tool_form.mako", dict( errors={}, tool_state=state, param_values={}, incoming={} )
# Process incoming data
if not( self.check_values ):
# If `self.check_values` is false we don't do any checking or
@@ -702,20 +702,20 @@ class Tool:
# error messages
if errors:
error_message = "One or more errors were found in the input you provided. The specific errors are marked below."
- return "tool_form.tmpl", dict( errors=errors, tool_state=state, incoming=incoming, error_message=error_message )
+ return "tool_form.mako", dict( errors=errors, tool_state=state, incoming=incoming, error_message=error_message )
# If we've completed the last page we can execute the tool
elif state.page == self.last_page:
out_data = self.execute( trans, incoming=params )
- return 'tool_executed.tmpl', dict( out_data=out_data )
+ return 'tool_executed.mako', dict( out_data=out_data )
# Otherwise move on to the next page
else:
state.page += 1
# Fill in the default values for the next page
self.fill_in_new_state( trans, self.inputs_by_page[ state.page ], state.inputs )
- return 'tool_form.tmpl', dict( errors=errors, tool_state=state )
+ return 'tool_form.mako', dict( errors=errors, tool_state=state )
else:
# Just a refresh, render the form with updated state and errors.
- return 'tool_form.tmpl', dict( errors=errors, tool_state=state )
+ return 'tool_form.mako', dict( errors=errors, tool_state=state )
def update_state( self, trans, inputs, state, incoming, prefix="", context=None,
update_only=False, old_errors={}, changed_dependencies={} ):
diff --git a/templates/tool_executed.tmpl b/templates/tool_executed.mako
similarity index 61%
rename from templates/tool_executed.tmpl
rename to templates/tool_executed.mako
index fa9e98eaa18..9fd7ed1bc08 100644
--- a/templates/tool_executed.tmpl
+++ b/templates/tool_executed.mako
@@ -4,37 +4,31 @@
Galaxy
-
+
@@ -43,14 +37,13 @@
-
The following job has been succesfully added to the queue:
-#for $data in $out_data.values
-
$data.hid: $data.name
-#end for
+%for data in out_data.values():
+
${data.hid}: ${data.name}
+%endfor
You can check the status of queued jobs and view the resulting
@@ -59,9 +52,9 @@ the status will change from 'running' to 'finished' if completed
succesfully or 'error' if problems were encountered.
You are now being redirected back to Galaxy
+%endif
diff --git a/templates/tool_form.mako b/templates/tool_form.mako
new file mode 100644
index 00000000000..714e95d38c2
--- /dev/null
+++ b/templates/tool_form.mako
@@ -0,0 +1,194 @@
+
+
+
+<%
+from galaxy.util.expressions import ExpressionContext
+%>
+
+
+
+
+ Welcome to Galaxy
+
+ It appears that you found this tool from a link outside of Galaxy.
+ If you're not familiar with Galaxy, please consider visiting the
+ welcome page.
+ To learn more about what Galaxy is and what it can do for you, please visit
+ the Galaxy wiki.
+
+
+%endif
+
+
+ %if tool.has_multiple_pages:
+
${tool.name} (step ${tool_state.page+1} of ${tool.npages})
- Welcome to Galaxy
-
- It appears that you found this tool from a link outside of Galaxy. If you're not familiar with Galaxy, please consider visiting the welcome page. To learn more about what Galaxy is and what it can do for you, please visit the Galaxy wiki.
-
-
-#end if
-
-
- #if $tool.has_multiple_pages
-
$tool.name (step #echo $tool_state.page+1 # of $tool.npages)