diff --git a/scipost_django/journals/templates/journals/journal_list.html b/scipost_django/journals/templates/journals/journal_list.html index 11c4cce22c2e81d6244c5bf39ee79a3cfdfe1836..25fd4ae339d85f7252013c11865987f53ddc91e2 100644 --- a/scipost_django/journals/templates/journals/journal_list.html +++ b/scipost_django/journals/templates/journals/journal_list.html @@ -104,14 +104,14 @@ </thead> <tbody> {% for branch in branches %} - {% if branch.journals.all|length > 0 %} + {% if branch.journals.active.all|length > 0 %} <tr> <td class="align-middle"> <small>{{ branch.name }}</small> </td> <td> {% for acad_field in branch.academic_fields.all %} - {% if acad_field.journals.all|length > 0 %} + {% if acad_field.journals.active.all|length > 0 %} <a href={% url 'journals:journals' %}?field={{ acad_field.slug }} class="btn btn-primary btn-sm"><small>{{ acad_field.name }}</small></a> {% else %} <button type="button" class="btn btn-sm btn-outline-secondary m-1"><small><em>{{ acad_field.name }}</em></small></button> @@ -131,12 +131,12 @@ <table class="table table-borderless"> {% for branch in branches %} {% for acad_field in branch.academic_fields.all %} - {% if acad_field.journals.all|length > 0 %} + {% if acad_field.journals.active.all|length > 0 %} <tr> <td class="align-middle"><strong>{{ acad_field.name }}</strong></td> <td> <ul class="list-group m-2"> - {% for journal in acad_field.journals.all %} + {% for journal in acad_field.journals.active.all %} <li class="list-group-item m-1 px-3 py-2 {{ journal.doi_label }}"> <a href="{{ journal.get_absolute_url }}">{{ journal.name }}</a> </li> diff --git a/scipost_django/scipost/templates/scipost/navbar.html b/scipost_django/scipost/templates/scipost/navbar.html index d63242538aa14fd0c317aad22082e83fc50c7e8b..545cd96ff30dbe4a269e05419db3c8ce9ba456d8 100644 --- a/scipost_django/scipost/templates/scipost/navbar.html +++ b/scipost_django/scipost/templates/scipost/navbar.html @@ -53,7 +53,7 @@ </td> <td> {% for acad_field in branch.academic_fields.all %} - {% if acad_field.journals.all|length > 0 %} + {% if acad_field.journals.active.all|length > 0 %} <a href={% url 'journals:journals' %}?field={{ acad_field.slug }} class="btn btn-primary btn-sm"><small>{{ acad_field.name }}</small></a> {% endif %} {% endfor %}