Skip to content

Commit

Permalink
[ERP-2802] Rename tag and file
Browse files Browse the repository at this point in the history
  • Loading branch information
lexie committed Nov 11, 2024
1 parent 26db36d commit e879f04
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load is_staging_env %}
{% is_staging_env as IS_STAGING_ENV %}
{% load show_banner %}
{% show_banner as SHOW_BANNER %}

{% if IS_STAGING_ENV %}
{% if SHOW_BANNER %}
<div class="alert alert-warning mb-0 text-center" role="alert">
<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
This registry is for testing purposes only. Do not submit real patient data.
Expand Down
2 changes: 1 addition & 1 deletion rdrf/rdrf/templates/rdrf_cdes/base-1-col.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<body>
<div id="wrap">
<div class="fixed-top">
{% include "rdrf_cdes/banner/_is_staging_env.html" %}
{% include "rdrf_cdes/banner/_show_banner.html" %}
{% include "rdrf_cdes/navbar.html" %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion rdrf/rdrf/templates/rdrf_cdes/base-2-cols.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<div class="blur"></div>
<div id="wrap">
<div class="fixed-top">
{% include "rdrf_cdes/banner/_is_staging_env.html" %}
{% include "rdrf_cdes/banner/_show_banner.html" %}
{% include "rdrf_cdes/navbar.html" with show_sidebar_button=True %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion rdrf/rdrf/templates/rdrf_cdes/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<body>
<div id="wrap">
<div class="fixed-top">
{% include "rdrf_cdes/banner/_is_staging_env.html" %}
{% include "rdrf_cdes/banner/_show_banner.html" %}
{% include "rdrf_cdes/navbar.html" %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion rdrf/rdrf/templates/rdrf_cdes/base_simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<div id="wrap">
<div class="fixed-top">
{% include "rdrf_cdes/banner/_is_staging_env.html" %}
{% include "rdrf_cdes/banner/_show_banner.html" %}
</div>
<div id="content" class="container">
{% include "rdrf_cdes/alert_language_is_not_supported.html" %}
Expand Down
2 changes: 1 addition & 1 deletion rdrf/rdrf/templates/registration/registration_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

<body>
<div class="fixed-top">
{% include "rdrf_cdes/banner/_is_staging_env.html" %}
{% include "rdrf_cdes/banner/_show_banner.html" %}
{% if not embedded_view %}
{% include "rdrf_cdes/navbar.html" %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@


@register.simple_tag
def is_staging_env():
def show_banner():
return settings.SHOW_BANNER
2 changes: 1 addition & 1 deletion rdrf/report/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<div id="wrap">
<div class="fixed-top">
{% include "rdrf_cdes/banner/_is_staging_env.html" %}
{% include "rdrf_cdes/banner/_show_banner.html" %}
{% include "rdrf_cdes/navbar.html" %}
</div>
<div id="content" class="container">
Expand Down

0 comments on commit e879f04

Please sign in to comment.