commit/galaxy-central: dan: Alphabetize lists of Data Manager elements on index page.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/1c913c980053/ Changeset: 1c913c980053 User: dan Date: 2014-05-13 20:21:08 Summary: Alphabetize lists of Data Manager elements on index page. Affected #: 1 file diff -r a5a7edbe49055c328960eaa5c622a62ecf83b27d -r 1c913c980053c4ce2dc6425cdf102298488242ec templates/webapps/galaxy/data_manager/index.mako --- a/templates/webapps/galaxy/data_manager/index.mako +++ b/templates/webapps/galaxy/data_manager/index.mako @@ -19,7 +19,7 @@ <li><strong>Run Data Manager Tools</strong><div style="margin-left:1em"><ul> - %for data_manager_id, data_manager in data_managers.data_managers.iteritems(): + %for data_manager_id, data_manager in sorted( data_managers.data_managers.iteritems(), key=lambda x:x[1].name ): <li><a href="${ h.url_for( controller='tool_runner', action='index', tool_id=data_manager.tool.id ) }"><strong>${ data_manager.name | h }</strong></a> - ${ data_manager.description | h } </li> @@ -32,7 +32,7 @@ <li><strong>View Data Manager Jobs</strong><div style="margin-left:1em"><ul> - %for data_manager_id, data_manager in data_managers.data_managers.iteritems(): + %for data_manager_id, data_manager in sorted( data_managers.data_managers.iteritems(), key=lambda x:x[1].name ): <li><a href="${h.url_for( controller='data_manager', action='manage_data_manager', id=data_manager_id)}" target="galaxy_main"><strong>${ data_manager.name | h }</strong></a> - ${ data_manager.description | h }</a></li> @@ -46,20 +46,19 @@ <li><strong>View Tool Data Table Entries</strong><div style="margin-left:1em"><ul> - %for table_name, managers in data_managers.managed_data_tables.iteritems(): + <% managed_table_names = data_managers.managed_data_tables.keys() %> + %for table_name in sorted( tool_data_tables.get_tables().keys() ): <li> - <a href="${h.url_for( controller='data_manager', action='manage_data_table', table_name=table_name)}" target="galaxy_main"><strong>${ table_name | h }</strong></a> + <a href="${h.url_for( controller='data_manager', action='manage_data_table', table_name=table_name)}" target="galaxy_main"> + %if table_name in managed_table_names: + <strong>${ table_name | h }</strong> + %else: + ${ table_name | h } + %endif + </a></li><p/> %endfor - %for table_name in tool_data_tables.get_tables(): - %if table_name not in data_managers.managed_data_tables: - <li> - <a href="${h.url_for( controller='data_manager', action='manage_data_table', table_name=table_name)}" target="galaxy_main">${ table_name | h }</a> - </li> - <p/> - %endif - %endfor </ul></div></li> 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.
participants (1)
-
commits-noreply@bitbucket.org