diff --git a/conekt/app.py b/conekt/app.py index 1754761..975c1a1 100644 --- a/conekt/app.py +++ b/conekt/app.py @@ -352,6 +352,7 @@ def configure_hooks(app): LOGIN_ENABLED = app.config['LOGIN_ENABLED'] BLAST_ENABLED = app.config['BLAST_ENABLED'] TWITTER_HANDLE = app.config['TWITTER_HANDLE'] if 'TWITTER_HANDLE' in app.config.keys() else None + TUTORIAL_URL = app.config['TUTORIAL_URL'] if 'TUTORIAL_URL' in app.config.keys() else None IMPRINT = app.config['IMPRINT_URL'] if 'IMPRINT_URL' in app.config.keys() else None PRIVACY = app.config['PRIVACY_POLICY_URL'] if 'PRIVACY_POLICY_URL' in app.config.keys() else None @@ -364,6 +365,8 @@ def before_request(): g.imprint = IMPRINT g.privacy = PRIVACY + g.tutorial = TUTORIAL_URL + g.page_items = 30 g.debug = app.config['DEBUG'] if 'DEBUG' in app.config else False diff --git a/conekt/templates/base.html b/conekt/templates/base.html index 83f9bbd..cfe609e 100644 --- a/conekt/templates/base.html +++ b/conekt/templates/base.html @@ -94,8 +94,9 @@
  • diff --git a/config.template.py b/config.template.py index a8379b9..8b7ac21 100644 --- a/config.template.py +++ b/config.template.py @@ -78,6 +78,9 @@ GLOB_MSG = None GLOB_MSG_TITLE = 'Info' +# Tutorial URL +TUTORIAL_URL = "https://github.molgen.mpg.de/proost/CoNekT/blob/master/docs/tutorials/overview.md" + # Customize link to Imprint and Privacy Policy(legal requirement in Germany) IMPRINT_URL = None PRIVACY_POLICY_URL = None \ No newline at end of file