Skip to content

Commit

Permalink
Move alerts above ACM navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Mar 21, 2024
1 parent a1a0447 commit d7566fb
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions primed/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,26 @@
</div>
</nav>

<main class="flex-shrink-0">
<div class="container">

{% if request.user.is_authenticated and not request.user.account %}
<div class="alert alert-warning" role="alert">
<i class="bi bi-exclamation-triangle-fill me-1"></i>
You must <a href="{% url 'anvil_consortium_manager:accounts:link' %}">link your AnVIL account</a> before you can access any data on AnVIL.
</div>
{% endif %}

{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %} alert-dismissible fade show" role="alert">{{ message }}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>
{% endfor %}
{% endif %}

{% block extra_navbar %}
{% endblock %}
<main class="flex-shrink-0">
<div class="container">

{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %} alert-dismissible fade show" role="alert">{{ message }}<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>
{% endfor %}
{% endif %}

{% if request.user.is_authenticated and not request.user.account %}
<div class="alert alert-warning" role="alert">
<i class="bi bi-exclamation-triangle-fill me-1"></i>
You must <a href="{% url 'anvil_consortium_manager:accounts:link' %}">link your AnVIL account</a> before you can access any data on AnVIL.
</div>
{% endif %}



{% block content %}
<div class="my-3 alert alert-warning" role="alert">
Expand Down

0 comments on commit d7566fb

Please sign in to comment.