Merge pull request #10112 from ic4f/dev_historyshare

Fix history sharing link (ref. #10040)
This commit is contained in:
Dannon
2020-08-21 16:22:33 -04:00
committed by GitHub
@@ -1130,9 +1130,9 @@ class HistoryController(BaseUIController, SharableMixin, UsesAnnotations, UsesIt
% ({'n': history.name, 's': url_for(controller='history', action="export_archive", id=id, qualified=True)}))
self.queue_history_export(trans, history, gzip=gzip, include_hidden=include_hidden, include_deleted=include_deleted)
url = url_for(controller='history', action="export_archive", id=id, qualified=True)
return trans.show_message("Exporting History '%(n)s'. You will need to <a href='%(share)s'>make this history 'accessible'</a> in order to import this to another galaxy sever. <br/>"
return trans.show_message("Exporting History '%(n)s'. You will need to <a href='%(share)s' target='_top'>make this history 'accessible'</a> in order to import this to another galaxy sever. <br/>"
"Use this link to download the archive or import it to another Galaxy server: "
"<a href='%(u)s'>%(u)s</a>" % ({'share': url_for(controller='history', action='sharing'), 'n': history.name, 'u': url}))
"<a href='%(u)s'>%(u)s</a>" % ({'share': url_for('/histories/sharing', id=id), 'n': history.name, 'u': url}))
# TODO: used in this file and index.mako
@web.expose