1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/9972ac6ee91d/ changeset: 9972ac6ee91d user: greg date: 2012-09-27 20:04:38 summary: Apply styles when displaying the long description when viewing a tool shed repository. affected #: 2 files diff -r 9c53432ad51c3936e001b3cfe1e82f949ce98fd8 -r 9972ac6ee91d7cab4b762ab6c68ff0cacc8b108e templates/webapps/community/common/common.mako --- a/templates/webapps/community/common/common.mako +++ b/templates/webapps/community/common/common.mako @@ -36,3 +36,23 @@ </div></div></%def> + +<%def name="render_long_description( description_text )"> + <style type="text/css"> + #description_table{ table-layout:fixed; + width:100%; + overflow-wrap:normal; + overflow:hidden; + border:0px; + word-break:keep-all; + word-wrap:break-word; + line-break:strict; } + </style> + <div class="form-row"> + <label>Detailed description:</label> + <table id="description_table"> + <tr><td><pre>${description_text}</pre></td></tr> + </table> + <div style="clear: both"></div> + </div> +</%def> diff -r 9c53432ad51c3936e001b3cfe1e82f949ce98fd8 -r 9972ac6ee91d7cab4b762ab6c68ff0cacc8b108e templates/webapps/community/repository/view_repository.mako --- a/templates/webapps/community/repository/view_repository.mako +++ b/templates/webapps/community/repository/view_repository.mako @@ -127,11 +127,7 @@ ${repository.description} </div> %if repository.long_description: - <div class="form-row"> - <label>Detailed description:</label> - <pre>${repository.long_description}</pre> - <div style="clear: both"></div> - </div> + ${render_long_description( repository.long_description )} %endif <div class="form-row"><label>Revision:</label> 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.