diff --git a/app/__init__.py b/app/__init__.py index 61c72f58a2d8d02932bac8afda1c27572db53e9f..659bf450e5e9c2d4f0e13287d464e9b59bf49406 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -76,12 +76,14 @@ def create_app(config_name): return render_template( "account/unauthorized.html", unauthorized_msg=messages.unauthorized_message, + docs_url=app_vars.docs_url, ) if rc_util.check_state(session["user"].get("username")) == "hold": return render_template( "account/hold.html", account_hold_msg=messages.account_hold_message, + docs_url=app_vars.docs_url, ) if ( @@ -101,11 +103,13 @@ def create_app(config_name): cancel_msg=messages.cancel_message, pre_certification_msg=messages.pre_certification_message, certification_msg=messages.certification_message, + docs_url=app_vars.docs_url, ) if rc_util.check_state(session["user"].get("username")) == "ok": return render_template( "account/good_standing.html", good_standing_msg=messages.good_standing_message, + docs_url=app_vars.docs_url, ) return render_template( @@ -119,6 +123,7 @@ def create_app(config_name): welcome_msg=messages.welcome_message, cancel_msg=messages.cancel_message, error_msg=messages.error_message, + docs_url=app_vars.docs_url, ) # misc page error catching diff --git a/app/templates/account/certify.html b/app/templates/account/certify.html index 8afa6f49e005831e0d553e61f5e100bc97f9b4b6..3114a6a29e2f3db04c1b37cfb435be2deebafb07 100644 --- a/app/templates/account/certify.html +++ b/app/templates/account/certify.html @@ -63,7 +63,7 @@ <div class="navbar-right"> <ul class="nav navbar-nav"> <li> - <a target="_blank" href="https://uabrc.github.io/"> + <a target="_blank" href="{{ docs_url }}"> <i class="fas fa-info-circle fa-fw"></i> Online Documentation </a> </li> diff --git a/app/templates/account/good_standing.html b/app/templates/account/good_standing.html index d81f0adf58f63772e19e27d1cfc7eeea04c3493d..b1b4dac906a05231a4ed31ab5cf5c325a3b00f87 100644 --- a/app/templates/account/good_standing.html +++ b/app/templates/account/good_standing.html @@ -33,7 +33,7 @@ <div class="navbar-right"> <ul class="nav navbar-nav"> <li> - <a target="_blank" href="https://docs.uabgrid.uab.edu/wiki/Cheaha_GettingStarted"> + <a target="_blank" href="{{ docs_url }}"> <i class="fas fa-info-circle fa-fw"></i> Online Documentation </a> </li> diff --git a/app/templates/account/hold.html b/app/templates/account/hold.html index c8c92036ecc09bbbc8a01044a309117fb5646c40..08341c4c5fb17485c81e5599f3aa3a9a9c9c572c 100644 --- a/app/templates/account/hold.html +++ b/app/templates/account/hold.html @@ -33,7 +33,7 @@ <div class="navbar-right"> <ul class="nav navbar-nav"> <li> - <a target="_blank" href="https://uabrc.github.io/"> + <a target="_blank" href="{{ docs_url }}"> <i class="fas fa-info-circle fa-fw"></i> Online Documentation </a> </li> diff --git a/app/templates/account/unauthorized.html b/app/templates/account/unauthorized.html index 5dce0d2b3a1fb6aef46b8549521ab2fc2bd9ad7f..c3d84a812fa54c479535cebc6d74d2296ae2c328 100644 --- a/app/templates/account/unauthorized.html +++ b/app/templates/account/unauthorized.html @@ -33,7 +33,7 @@ <div class="navbar-right"> <ul class="nav navbar-nav"> <li> - <a target="_blank" href="https://uabrc.github.io/"> + <a target="_blank" href="{{ docs_url }}"> <i class="fas fa-info-circle fa-fw"></i> Online Documentation </a> </li> diff --git a/app/templates/auth/SignUp.html b/app/templates/auth/SignUp.html index 26c1aaaebbecc28d46862000bf66842058236285..cea9acefe72ce6b840b00344d15a14741ea49c2f 100644 --- a/app/templates/auth/SignUp.html +++ b/app/templates/auth/SignUp.html @@ -63,7 +63,7 @@ <div class="navbar-right"> <ul class="nav navbar-nav"> <li> - <a target="_blank" href="https://uabrc.github.io/"> + <a target="_blank" href="{{ docs_url }}"> <i class="fas fa-info-circle fa-fw"></i> Online Documentation </a> </li>