1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e22f360cda13/ Changeset: e22f360cda13 User: greg Date: 2013-07-24 16:34:21 Summary: Render tool shed repository readme files as rst only if the file name ends with .rst. Affected #: 1 file diff -r 27b458743a117b5fb119915dc89bddc017625146 -r e22f360cda1363d0c93a86d64c17032e7507b296 templates/webapps/tool_shed/repository/common.mako --- a/templates/webapps/tool_shed/repository/common.mako +++ b/templates/webapps/tool_shed/repository/common.mako @@ -600,8 +600,10 @@ <%def name="render_readme( readme, pad, parent, row_counter )"><% + from tool_shed.util.shed_util_common import to_safe_string from galaxy.util import rst_to_html encoded_id = trans.security.encode_id( readme.id ) + render_rst = readme.name.endswith( '.rst' ) %><style type="text/css"> #readme_table{ table-layout:fixed; @@ -620,7 +622,11 @@ id="libraryItem-${encoded_id}"><td style="padding-left: ${pad+20}px;"><table id="readme_table"> - <tr><td>${ rst_to_html( readme.text ) }</td></tr> + %if render_rst: + <tr><td>${ rst_to_html( readme.text ) }</td></tr> + %else: + <tr><td>${readme.name}<br/>${ to_safe_string( readme.text, to_html=True ) }</td></tr> + %endif </table></td></tr> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.