1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/2b4d50205705/ changeset: 2b4d50205705 user: richard_burhans date: 2011-06-07 20:30:52 summary: don't show metadata items that are not visible affected #: 1 file (105 bytes) --- a/templates/library/common/ldda_info.mako Tue Jun 07 11:32:11 2011 -0400 +++ b/templates/library/common/ldda_info.mako Tue Jun 07 14:30:52 2011 -0400 @@ -136,20 +136,22 @@ <div>${ldda.blurb}</div></div> %for name, spec in ldda.metadata.spec.items(): - <div class="form-row"> - <label>${spec.desc.replace( ' (click box & select)', '' )}:</label> - <% - metadata_val = ldda.metadata.get( name ) - if isinstance( metadata_val, trans.model.MetadataFile ): - metadata_val = metadata_val.file_name - elif isinstance( metadata_val, list ): - # Make sure list items are strings - metadata_val = [ str( item ) for item in metadata_val ] - metadata_val = ', '.join( metadata_val ) - %> - ${metadata_val} - <div style="clear: both"></div> - </div> + %if spec.visible: + <div class="form-row"> + <label>${spec.desc.replace( ' (click box & select)', '' )}:</label> + <% + metadata_val = ldda.metadata.get( name ) + if isinstance( metadata_val, trans.model.MetadataFile ): + metadata_val = metadata_val.file_name + elif isinstance( metadata_val, list ): + # Make sure list items are strings + metadata_val = [ str( item ) for item in metadata_val ] + metadata_val = ', '.join( metadata_val ) + %> + ${metadata_val} + <div style="clear: both"></div> + </div> + %endif %endfor %if ldda.peek != "no peek": <div class="form-row"> 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.