Skip to content

Commit f579108

Browse files
committed
Remove outdated block extras and move block extra css just above block extra js in templates.
1 parent 8e0249c commit f579108

File tree

11 files changed

+19
-53
lines changed

11 files changed

+19
-53
lines changed

hypha/apply/dashboard/templates/dashboard/contracting_dashboard.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,3 @@ <h4 class="heading heading--normal">{% trans "PAFs for review" %}</h4>
3434
{% endif %}
3535
</div>
3636
{% endblock %}
37-
38-
{% block extra_js %}
39-
<script src="{% static 'js/submission-filters.js' %}"></script>
40-
<script src="{% static 'js/tabs.js' %}"></script>
41-
{% endblock %}

hypha/apply/dashboard/templates/dashboard/finance_dashboard.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,3 @@ <h4 class="heading heading--normal">{% trans "PAFs for review" %}</h4>
100100

101101
</div>
102102
{% endblock %}
103-
104-
{% block extra_js %}
105-
{{ my_reviewed.filterset.form.media.js }}
106-
<script src="{% static 'js/submission-filters.js' %}"></script>
107-
{% endblock %}

hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
{% load render_table from django_tables2 %}
33
{% load i18n static statusbar_tags workflow_tags %}
44

5-
{% block extra_css %}
6-
{{ filter.form.media.css }}
7-
{% endblock %}
8-
95
{% block title %}{% trans "Dashboard" %}{% endblock %}
106

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

9187
{% endblock %}
9288

89+
{% block extra_css %}
90+
{{ filter.form.media.css }}
91+
{% endblock %}
92+
9393
{% block extra_js %}
9494
{{ filter.form.media.js }}
9595
<script src="{% static 'js/submission-filters.js' %}"></script>

hypha/apply/dashboard/templates/dashboard/staff_dashboard.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
{% load render_table from django_tables2 %}
33
{% load i18n static nh3_tags markdown_tags heroicons %}
44

5-
{% block extra_css %}
6-
{{ my_reviewed.filterset.form.media.css }}
7-
{% endblock %}
8-
95
{% block title %}{% trans "Dashboard" %}{% endblock %}
106

117
{% block content %}
@@ -136,9 +132,12 @@ <h2 class="heading heading--normal">{{ review_heading }}</h2>
136132
</div>
137133
{% endblock %}
138134

135+
{% block extra_css %}
136+
{{ my_reviewed.filterset.form.media.css }}
137+
{% endblock %}
138+
139139
{% block extra_js %}
140140
{{ my_reviewed.filterset.form.media.js }}
141141
<script src="{% static 'js/all-submissions-table.js' %}"></script>
142142
<script src="{% static 'js/submission-filters.js' %}"></script>
143-
<script src="{% static 'js/tabs.js' %}"></script>
144143
{% endblock %}

hypha/apply/funds/templates/funds/applicationsubmission_community_detail.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,3 @@ <h5>{% trans "Reviews & assignees" %}</h5>
2222

2323
{% block related %}
2424
{% endblock %}
25-
26-
{% block extra_js %}
27-
{{ reviewer_form.media.js }}
28-
{{ block.super }}
29-
{% endblock %}

hypha/apply/funds/templates/funds/applicationsubmission_reviewer_detail.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,3 @@ <h5>{% trans "Reviews & assignees" %}</h5>
2929

3030
{% block related %}
3131
{% endblock %}
32-
33-
{% block extra_js %}
34-
{{ reviewer_form.media.js }}
35-
{{ block.super }}
36-
{% endblock %}

hypha/apply/funds/templates/funds/base_submissions_table.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
{% load static %}
33
{% load render_table from django_tables2 %}
44

5-
{% block extra_css %}
6-
{{ filter.form.media.css }}
7-
{% endblock %}
8-
95
{% block content %}
106
{% block table %}
117
{% 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 %}
@@ -14,6 +10,10 @@
1410
{% endblock %}
1511
{% endblock %}
1612

13+
{% block extra_css %}
14+
{{ filter.form.media.css }}
15+
{% endblock %}
16+
1717
{% block extra_js %}
1818
{{ filter.form.media.js }}
1919
<script src="{% static 'js/all-submissions-table.js' %}"></script>

hypha/apply/funds/templates/funds/grouped_application_list.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{% extends "base-apply.html" %}
22
{% load i18n static %}
33

4-
{% block extra_css %}
5-
{{ filter.form.media.css }}
6-
{% endblock %}
7-
84
{% block content %}
95

106
{% adminbar %}
@@ -14,6 +10,10 @@
1410
<div id="grouped-applications-list"></div>
1511
{% endblock %}
1612

13+
{% block extra_css %}
14+
{{ filter.form.media.css }}
15+
{% endblock %}
16+
1717
{% block extra_js %}
1818
{{ filter.form.media.js }}
1919
<script src="{% static 'js/all-submissions-table.js' %}"></script>

hypha/apply/funds/templates/funds/rounds.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44

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

7-
{% block extra_css %}
8-
{{ filter.form.media.css }}
9-
{% endblock %}
10-
11-
127
{% block content %}
13-
148
{% adminbar %}
159
{% slot header %}{% trans "Rounds" %}{% endslot %}
1610
{% slot sub_heading %}{% trans "Explore current and past rounds" %}{% endslot %}
@@ -20,7 +14,10 @@
2014
{% include "funds/includes/table_filter_and_search.html" with filter_form=filter_form search_term=search_term can_export=can_export %}
2115
{% render_table table %}
2216
</div>
17+
{% endblock %}
2318

19+
{% block extra_css %}
20+
{{ filter.form.media.css }}
2421
{% endblock %}
2522

2623
{% block extra_js %}

hypha/apply/projects/templates/application_projects/invoice_list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
{% block title %}{% trans "Invoices" %}{% endblock %}
77

88
{% block content %}
9-
109
{% adminbar %}
1110
{% slot header %}{% trans "All Invoices" %} ({{ table.rows|length }}){% endslot %}
1211
{% slot sub_heading %}{% trans "View, search and filter all project invoices" %}{% endslot %}
@@ -28,7 +27,6 @@
2827
<p>{% trans "No Invoices available" %}</p>
2928
{% endif %}
3029
</div>
31-
3230
{% endblock content %}
3331

3432
{% block extra_css %}

0 commit comments

Comments
 (0)