Commits

Greg Von Kuster  committed 6a7d9d3

Apply changes to rendering tool help to the tool shed's version of the tool form mako template so tools can be displayed again in the tool shed.

  • Participants
  • Parent commits 9af69e5

Comments (0)

Files changed (1)

File templates/webapps/community/repository/tool_form.mako

                 <div class="toolHelp">
                     <div class="toolHelpBody">
                         <%
+                            tool_help = tool.help
+                            # Help is Mako template, so render using current static path.
+                            tool_help = tool_help.render( static_path=h.url_for( '/static' ) )
                             # Convert to unicode to display non-ascii characters.
-                            if type( tool.help ) is not unicode:
-                                tool.help = unicode( tool.help, 'utf-8')
+                            if type( tool_help ) is not unicode:
+                                tool_help = unicode( tool_help, 'utf-8')
                         %>
-                        ${tool.help}
-                    </div>        
+                        ${tool_help}
+                    </div>
                 </div>
             %endif
         %else: