mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #3139 from natefoo/message-box-bool
Treat the value of `message_box_visible` in galaxy.ini as a boolean
This commit is contained in:
@@ -279,7 +279,7 @@ class Configuration( object ):
|
||||
self.welcome_url = kwargs.get( 'welcome_url', '/static/welcome.html' )
|
||||
self.show_welcome_with_login = string_as_bool( kwargs.get( "show_welcome_with_login", "False" ) )
|
||||
# Configuration for the message box directly below the masthead.
|
||||
self.message_box_visible = kwargs.get( 'message_box_visible', False )
|
||||
self.message_box_visible = string_as_bool( kwargs.get( 'message_box_visible', False ) )
|
||||
self.message_box_content = kwargs.get( 'message_box_content', None )
|
||||
self.message_box_class = kwargs.get( 'message_box_class', 'info' )
|
||||
self.support_url = kwargs.get( 'support_url', 'https://wiki.galaxyproject.org/Support' )
|
||||
|
||||
@@ -40,7 +40,7 @@ class Configuration( object ):
|
||||
self.log_actions = string_as_bool( kwargs.get( 'log_actions', 'False' ) )
|
||||
self.brand = kwargs.get( 'brand', None )
|
||||
# Configuration for the message box directly below the masthead.
|
||||
self.message_box_visible = kwargs.get( 'message_box_visible', False )
|
||||
self.message_box_visible =string_as_bool( kwargs.get( 'message_box_visible', False ) )
|
||||
self.message_box_content = kwargs.get( 'message_box_content', None )
|
||||
self.message_box_class = kwargs.get( 'message_box_class', 'info' )
|
||||
self.wiki_url = kwargs.get( 'wiki_url', 'https://wiki.galaxyproject.org/' )
|
||||
|
||||
@@ -110,7 +110,7 @@ class Configuration( object ):
|
||||
self.brand = kwargs.get( 'brand', None )
|
||||
self.pretty_datetime_format = expand_pretty_datetime_format( kwargs.get( 'pretty_datetime_format', '$locale (UTC)' ) )
|
||||
# Configuration for the message box directly below the masthead.
|
||||
self.message_box_visible = kwargs.get( 'message_box_visible', False )
|
||||
self.message_box_visible = string_as_bool( kwargs.get( 'message_box_visible', False ) )
|
||||
self.message_box_content = kwargs.get( 'message_box_content', None )
|
||||
self.message_box_class = kwargs.get( 'message_box_class', 'info' )
|
||||
self.support_url = kwargs.get( 'support_url', 'https://wiki.galaxyproject.org/Support' )
|
||||
|
||||
Reference in New Issue
Block a user