Skip to content

Commit

Permalink
Remove outdated block extras and move block extra css just above bloc…
Browse files Browse the repository at this point in the history
…k extra js in templates.
  • Loading branch information
frjo committed Dec 20, 2024
1 parent 8d0dc7e commit 7c64842
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,3 @@ <h4 class="heading heading--normal">{% trans "PAFs for review" %}</h4>
{% endif %}
</div>
{% endblock %}

{% block extra_js %}
<script src="{% static 'js/submission-filters.js' %}"></script>
<script src="{% static 'js/tabs.js' %}"></script>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,3 @@ <h4 class="heading heading--normal">{% trans "PAFs for review" %}</h4>

</div>
{% endblock %}

{% block extra_js %}
{{ my_reviewed.filterset.form.media.js }}
<script src="{% static 'js/submission-filters.js' %}"></script>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
{% load render_table from django_tables2 %}
{% load i18n static statusbar_tags workflow_tags %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}

{% block title %}{% trans "Dashboard" %}{% endblock %}

{% block content %}
Expand Down Expand Up @@ -90,6 +86,10 @@ <h2 class="text-xl mb-2">

{% endblock %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}

{% block extra_js %}
{{ filter.form.media.js }}
<script src="{% static 'js/submission-filters.js' %}"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
{% load render_table from django_tables2 %}
{% load i18n static nh3_tags markdown_tags heroicons %}

{% block extra_css %}
{{ my_reviewed.filterset.form.media.css }}
{% endblock %}

{% block title %}{% trans "Dashboard" %}{% endblock %}

{% block content %}
Expand Down Expand Up @@ -136,9 +132,12 @@ <h2 class="heading heading--normal">{{ review_heading }}</h2>
</div>
{% endblock %}

{% block extra_css %}
{{ my_reviewed.filterset.form.media.css }}
{% endblock %}

{% block extra_js %}
{{ my_reviewed.filterset.form.media.js }}
<script src="{% static 'js/all-submissions-table.js' %}"></script>
<script src="{% static 'js/submission-filters.js' %}"></script>
<script src="{% static 'js/tabs.js' %}"></script>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,3 @@ <h5>{% trans "Reviews & assignees" %}</h5>

{% block related %}
{% endblock %}

{% block extra_js %}
{{ reviewer_form.media.js }}
{{ block.super }}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,3 @@ <h5>{% trans "Reviews & assignees" %}</h5>

{% block related %}
{% endblock %}

{% block extra_js %}
{{ reviewer_form.media.js }}
{{ block.super }}
{% endblock %}
8 changes: 4 additions & 4 deletions hypha/apply/funds/templates/funds/base_submissions_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
{% load static %}
{% load render_table from django_tables2 %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}

{% block content %}
{% block table %}
{% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term use_search=True filter_action=filter_action filter_classes="filters-open" can_export=can_export %}
Expand All @@ -14,6 +10,10 @@
{% endblock %}
{% endblock %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}

{% block extra_js %}
{{ filter.form.media.js }}
<script src="{% static 'js/all-submissions-table.js' %}"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{% extends "base-apply.html" %}
{% load i18n static %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}

{% block content %}

{% adminbar %}
Expand All @@ -14,6 +10,10 @@
<div id="grouped-applications-list"></div>
{% endblock %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}

{% block extra_js %}
{{ filter.form.media.js }}
<script src="{% static 'js/all-submissions-table.js' %}"></script>
Expand Down
9 changes: 3 additions & 6 deletions hypha/apply/funds/templates/funds/rounds.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

{% block title %}{% trans "Rounds" %}{% endblock %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}


{% block content %}

{% adminbar %}
{% slot header %}{% trans "Rounds" %}{% endslot %}
{% slot sub_heading %}{% trans "Explore current and past rounds" %}{% endslot %}
Expand All @@ -20,7 +14,10 @@
{% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term can_export=can_export %}
{% render_table table %}
</div>
{% endblock %}

{% block extra_css %}
{{ filter.form.media.css }}
{% endblock %}

{% block extra_js %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{% block title %}{% trans "Invoices" %}{% endblock %}

{% block content %}

{% adminbar %}
{% slot header %}{% trans "All Invoices" %} ({{ table.rows|length }}){% endslot %}
{% slot sub_heading %}{% trans "View, search and filter all project invoices" %}{% endslot %}
Expand All @@ -28,7 +27,6 @@
<p>{% trans "No Invoices available" %}</p>
{% endif %}
</div>

{% endblock content %}

{% block extra_css %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

{% block title %}{{ object.title }}{% endblock %}

{% block extra_css %}
{{ reviewer_form.media.css }}
{% endblock %}

{% block content %}
{% adminbar %}
{% slot back_link %}
Expand Down Expand Up @@ -150,7 +146,3 @@ <h5>{% trans "Actions to take" %}</h5>
</div>
</div>
{% endblock content %}

{% block extra_js %}
{{ block.super }}
{% endblock %}

0 comments on commit 7c64842

Please sign in to comment.