Skip to content

Commit d13eb92

Browse files
chore: apply shorter line length format
1 parent 21ceb49 commit d13eb92

14 files changed

Lines changed: 74 additions & 25 deletions

File tree

myhpi/core/templates/core/minutes.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
<h1 class="page-title">
1313
<span class="underline">{{ page.title }}</span>
1414
</h1>
15-
<div class="col-lg-9 minutes-text">{{ parsed_md.0|touchify_abbreviations|tag_external_links }}</div>
15+
<div class="col-lg-9 minutes-text">
16+
{{ parsed_md.0|touchify_abbreviations|tag_external_links }}
17+
</div>
1618
<div class="col-lg-3 minutes-meta">
1719
<aside class="side-panel border-accent">
1820
<h1 class="side-panel-title">{% translate "Date" %}</h1>
@@ -29,7 +31,9 @@ <h1 class="side-panel-title">{% translate "Minutes taker" %}</h1>
2931
<aside class="side-panel border-accent">
3032
<h1 class="side-panel-title">{% translate "Participants" %}</h1>
3133
<ul>
32-
{% for participant in page.participants.all %}<li>{{ participant.get_full_name }}</li>{% endfor %}
34+
{% for participant in page.participants.all %}
35+
<li>{{ participant.get_full_name }}</li>
36+
{% endfor %}
3337
</ul>
3438
</aside>
3539
<aside class="side-panel border-accent">

myhpi/core/templates/core/sidebar.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
{% if perms.wagtail.edit_page %}
55
{% if page.has_unpublished_changes %}
66
<aside class="side-panel border-accent sidebar-container d-print-none">
7-
<h1 class="side-panel-warning">{% translate "Page has unpublished changes!" %}</h1>
7+
<h1 class="side-panel-warning">
8+
{% translate "Page has unpublished changes!" %}
9+
</h1>
810
</aside>
911
{% endif %}
1012
{% with page.visible_for.all|join:", " as visibility %}
@@ -45,7 +47,9 @@ <h1 class="side-panel-title">{% translate "Attachments" %}</h1>
4547
id="sidebar-offcanvas"
4648
aria-labelledby="sidebar-offcanvas-label">
4749
<div class="offcanvas-header">
48-
<h5 class="offcanvas-title" id="sidebar-offcanvas-label">{% translate "Table of contents" %}</h5>
50+
<h5 class="offcanvas-title" id="sidebar-offcanvas-label">
51+
{% translate "Table of contents" %}
52+
</h5>
4953
<button type="button"
5054
class="btn-close"
5155
data-bs-dismiss="offcanvas"

myhpi/polls/templates/polls/base_poll.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ <h2>{{ page.question }}</h2>
1717
{% elif page.results_visible %}
1818
{% block results %}{% endblock %}
1919
{% elif not page.in_voting_period %}
20-
<p>{% translate "You've accessed this page outside of the voting period." %}</p>
20+
<p>
21+
{% translate "You've accessed this page outside of the voting period." %}
22+
</p>
2123
{% else %}
22-
<p>{% translate "You are not allowed to cast (another) vote and the results are not visible yet." %}</p>
24+
<p>
25+
{% translate "You are not allowed to cast (another) vote and the results are not visible yet." %}
26+
</p>
2327
{% endif %}
2428
</div>
2529
<div class="col-lg-3">

myhpi/polls/templates/polls/ranked_choice_poll.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
data-parent="#options"
2222
class="collapse show">
2323
<div class="card-body">
24-
{% with field.help_text|markdown as parsed_md %}<p>{{ parsed_md.0 }}</p>{% endwith %}
24+
{% with field.help_text|markdown as parsed_md %}
25+
<p>{{ parsed_md.0 }}</p>
26+
{% endwith %}
2527
</div>
2628
</div>
2729
</div>

myhpi/search/templates/search/search_field.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
{% if search_query %}value="{{ search_query }}"{% endif %}>
1111
<button type="submit"
1212
class="btn btn-primary"
13-
aria-label="{% translate 'Search' %}">{% bs_icon "search" extra_classes="text-light" %}</button>
13+
aria-label="{% translate 'Search' %}">
14+
{% bs_icon "search" extra_classes="text-light" %}
15+
</button>
1416
</div>
1517
</form>

myhpi/templates/403.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@ <h1>{% translate "Access denied" %}</h1>
1515
</p>
1616

1717
<ul class="pb-3">
18-
<li>{% translate "You are not logged in and are not accessing the page from the university network." %}</li>
19-
<li>{% translate "You are not logged in and the page is only available for logged in users." %}</li>
20-
<li>{% translate "You are logged in but don't have the required permissions to access this page." %}</li>
18+
<li>
19+
{% translate "You are not logged in and are not accessing the page from the university network." %}
20+
</li>
21+
<li>
22+
{% translate "You are not logged in and the page is only available for logged in users." %}
23+
</li>
24+
<li>
25+
{% translate "You are logged in but don't have the required permissions to access this page." %}
26+
</li>
2127
</ul>
2228
{% endblock %}

myhpi/templates/base.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
href="{% static 'scss/myHPI.scss'|compile %}"
3737
rel="stylesheet">
3838

39-
{% block extra_css %}{# Override this in templates to add extra stylesheets #}{% endblock %}
39+
{% block extra_css %}
40+
{# Override this in templates to add extra stylesheets #}
41+
{% endblock %}
4042
</head>
4143

4244
<body class="bg-background myhpi-accent d-flex flex-column min-vh-100 {% block body_class %}{% endblock %}">
@@ -150,7 +152,8 @@
150152
<button type="button"
151153
class="btn-close"
152154
data-bs-dismiss="alert"
153-
aria-label="{% translate 'Close' %}"></button>
155+
aria-label="{% translate 'Close' %}">
156+
</button>
154157
</div>
155158
{% endfor %}
156159
</div>
@@ -215,7 +218,9 @@
215218
<script type="text/javascript" src="{% static 'js/search.js' %}"></script>
216219
<script type="text/javascript" src="{% static 'js/myHPI.js' %}"></script>
217220

218-
{% block extra_js %}{# Override this in templates to add extra javascript #}{% endblock %}
221+
{% block extra_js %}
222+
{# Override this in templates to add extra javascript #}
223+
{% endblock %}
219224
</body>
220225

221226
</html>

myhpi/templates/footer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
<div class="page-content d-flex flex-wrap flex-column flex-sm-row">
66
{% for column in footer_columns %}
77
<div class="footer-category">
8-
{% with column|markdown as parsed_markdown %}{{ parsed_markdown.0|tag_external_links }}{% endwith %}
8+
{% with column|markdown as parsed_markdown %}
9+
{{ parsed_markdown.0|tag_external_links }}
10+
{% endwith %}
911
</div>
1012
{% endfor %}
1113
<div class="footer-category">

myhpi/templates/login.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
{% else %}
1515
{% if 'next' in request.GET and not request.GET.user_initiated %}
1616
<div class="alert alert-danger alert-dismissable">
17-
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
17+
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
18+
&times;
19+
</button>
1820
{% translate "Please login to see this page." %}
1921
</div>
2022
{% endif %}

myhpi/tenca_django/templates/tenca_django/action.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@
1717
{% endblock %}
1818

1919
{% block content %}
20-
<p>{% trans "This link is now invalid. You never need to visit it again." %}</p>
20+
<p>
21+
{% trans "This link is now invalid. You never need to visit it again." %}
22+
</p>
2123
{% endblock %}

0 commit comments

Comments
 (0)