commit/galaxy-central: jgoecks: When copying datasets, provide links to target histories.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/2fcde6fbf1fb/ changeset: 2fcde6fbf1fb user: jgoecks date: 2011-10-11 22:00:04 summary: When copying datasets, provide links to target histories. affected #: 1 file (-1 bytes) --- a/lib/galaxy/web/controllers/dataset.py Tue Oct 11 14:47:34 2011 -0400 +++ b/lib/galaxy/web/controllers/dataset.py Tue Oct 11 16:00:04 2011 -0400 @@ -1134,7 +1134,10 @@ if history in target_histories: refresh_frames = ['history'] trans.sa_session.flush() - hist_names_str = ", ".join( [ hist.name for hist in target_histories ] ) + hist_names_str = ", ".join( ['<a href="%s" target="_top">%s</a>' % + ( url_for( controller="history", action="switch_to_history", \ + hist_id=trans.security.encode_id( hist.id ) ), hist.name ) \ + for hist in target_histories ] ) num_source = len( source_dataset_ids ) - invalid_datasets num_target = len(target_histories) done_msg = "%i %s copied to %i %s: %s." % (num_source, inflector.cond_plural(num_source, "dataset"), num_target, inflector.cond_plural(num_target, "history"), hist_names_str ) 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)
-
Bitbucket