diff --git a/lib/galaxy/web/controllers/root.py b/lib/galaxy/web/controllers/root.py index 97d27dab787..c965d810373 100644 --- a/lib/galaxy/web/controllers/root.py +++ b/lib/galaxy/web/controllers/root.py @@ -372,7 +372,7 @@ class RootController( BaseController ): @web.expose @web.require_login( "share histories with other users" ) - def history_share( self, trans, id=None, email=None, **kwd ): + def history_share( self, trans, id=None, email="", **kwd ): send_to_err = "" if not id: id = trans.get_history().id @@ -385,7 +385,7 @@ class RootController( BaseController ): history_names.append(histories[-1].name) if not email: return trans.fill_template("/history/share.mako", histories=histories, email=email, send_to_err=send_to_err) - + user = trans.get_user() send_to_user = trans.app.model.User.get_by( email = email ) if not send_to_user: send_to_err = "No such user" diff --git a/templates/history/share.mako b/templates/history/share.mako index 5fd21c11a0f..5e64e66756a 100644 --- a/templates/history/share.mako +++ b/templates/history/share.mako @@ -4,7 +4,7 @@
Share Histories
- + %for history in histories:
History Name:Number of Datasets:Share Link
${history.name} diff --git a/test/functional/test_history_functions.py b/test/functional/test_history_functions.py index b5f7e8e97c5..24663bf4e77 100644 --- a/test/functional/test_history_functions.py +++ b/test/functional/test_history_functions.py @@ -21,7 +21,7 @@ class TestHistory( TwillTestCase ): """Testing history options when logged in""" self.history_options() self.check_page_for_string( 'Rename current history') - self.check_page_for_string( 'View previously stored histories') + self.check_page_for_string( 'List previously stored histories') self.check_page_for_string( 'Share current history') self.check_page_for_string( 'Delete current history') def test_10_history_rename( self ): @@ -33,9 +33,9 @@ class TestHistory( TwillTestCase ): self.view_stored_histories() self.check_page_for_string( 'Stored Histories' ) self.check_page_for_string( '