Skip to content

Commit f82bbc3

Browse files
committed
Format UI templates
Remove trailing spaces and format for readability. Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 25fd8b7 commit f82bbc3

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

vulnerabilities/templates/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<ul>
3232
<li>
3333
Sponsored by NLnet <a href="https://nlnet.nl/project/vulnerabilitydatabase/">
34-
https://nlnet.nl/project/vulnerabilitydatabase/</a> for
34+
https://nlnet.nl/project/vulnerabilitydatabase/</a> for
3535
<a href="https://www.aboutcode.org/">https://www.aboutcode.org/</a>
3636
</li>
3737
<li>

vulnerabilities/templates/packages.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</div>
3232
</div>
3333
</article>
34-
34+
3535
<div class="is-flex" style="justify-content: space-between;">
3636
<div>
3737
<strong>Total records:</strong> {{ page_obj.paginator.count|intcomma }}
@@ -62,15 +62,15 @@
6262
</div>
6363
</section>
6464
</div>
65-
65+
6666
<section class="section pt-0">
6767
<div class="content">
6868
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
6969
<thead>
7070
<tr>
7171
<th>
72-
<span
73-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
72+
<span
73+
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
7474
data-tooltip="The package url or purl is a URL string used to identify and locate a software package.">
7575
Package URL
7676
</span>
@@ -84,7 +84,7 @@
8484
</th>
8585
<th style="width: 225px;">
8686
<span
87-
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
87+
class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left"
8888
data-tooltip="This is the number of vulnerabilities fixed by the package.">
8989
Fixing vulnerabilities
9090
</span>
@@ -112,20 +112,20 @@
112112
</tbody>
113113
</table>
114114
</div>
115-
115+
116116
<nav class="pagination is-centered is-small" aria-label="pagination">
117117
{% if page_obj.has_previous %}
118118
<a href="?package_name={{ package_name }}&page={{ page_obj.previous_page_number }}" class="pagination-previous">Previous</a>
119119
{% else %}
120120
<a class="pagination-previous" disabled>Previous</a>
121121
{% endif %}
122-
122+
123123
{% if page_obj.has_next %}
124124
<a href="?package_name={{ package_name }}&page={{ page_obj.next_page_number }}" class="pagination-next">Next</a>
125125
{% else %}
126126
<a class="pagination-next" disabled>Next</a>
127127
{% endif %}
128-
128+
129129
<ul class="pagination-list">
130130
{% if page_obj.number != 1%}
131131
<li>
@@ -164,7 +164,7 @@
164164
{% endif %}
165165
</ul>
166166
</nav>
167-
167+
168168
</section>
169169
{% endif %}
170170
{% endblock %}

vulnerabilities/templates/vulnerabilities.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
</div>
3838
<div>
3939
{% if page_obj.has_previous %}
40-
<a
41-
class="small_page_button"
40+
<a
41+
class="small_page_button"
4242
href="?vulnerability_id={{ vulnerability_id }}&page=1">
4343
1
4444
</a>
45-
<a
46-
class="page_arrow_spacing"
45+
<a
46+
class="page_arrow_spacing"
4747
href="?vulnerability_id={{ vulnerability_id }}&page={{ page_obj.previous_page_number }}">
4848
&laquo;
4949
</a>
@@ -53,12 +53,12 @@
5353
{% endif %}
5454
Page {{ page_obj.number|intcomma }} of {{ page_obj.paginator.num_pages|intcomma }}
5555
{% if page_obj.has_next %}
56-
<a
56+
<a
5757
class="page_arrow_spacing"
5858
href="?vulnerability_id={{ vulnerability_id }}&page={{ page_obj.next_page_number }}">
5959
&raquo;
6060
</a>
61-
<a
61+
<a
6262
class="small_page_button"
6363
href="?vulnerability_id={{ vulnerability_id }}&page={{ page_obj.paginator.num_pages }}">
6464
{{ page_obj.paginator.num_pages|intcomma }}
@@ -71,7 +71,7 @@
7171
</div>
7272
</section>
7373
</div>
74-
74+
7575
<section class="section pt-0">
7676
<div class="content">
7777
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
@@ -80,15 +80,15 @@
8080
<th>Vulnerability id</th>
8181
<th style="width: 225px;">Aliases</th>
8282
<th style="width: 225px;">Affected packages</th>
83-
<th style="width: 225px;">Fixed packages</th>
83+
<th style="width: 225px;">Fixed by packages</th>
8484
</tr>
8585
</thead>
8686
<tbody>
8787
{% for vulnerability in page_obj %}
8888
<tr class="is-clipped-list">
8989
<td style="word-break: break-all;">
90-
<a
91-
href="{% url 'vulnerability_view' vulnerability.pk %}?vulnerability_id={{ vulnerability.vulnerability_id }}"
90+
<a
91+
href="{% url 'vulnerability_view' vulnerability.pk %}?vulnerability_id={{ vulnerability.vulnerability_id }}"
9292
target="_self">{{ vulnerability.vulnerability_id }}
9393
</a>
9494
</td>
@@ -117,7 +117,7 @@
117117
</tbody>
118118
</table>
119119
</div>
120-
120+
121121
<nav class="pagination is-centered is-small" aria-label="pagination">
122122
{% if page_obj.has_previous %}
123123
<a
@@ -128,7 +128,7 @@
128128
{% else %}
129129
<a class="pagination-previous" disabled>Previous</a>
130130
{% endif %}
131-
131+
132132
{% if page_obj.has_next %}
133133
<a href="?vulnerability_id={{ vulnerability_id }}&page={{ page_obj.next_page_number }}"
134134
class="pagination-next">
@@ -137,7 +137,7 @@
137137
{% else %}
138138
<a class="pagination-next" disabled>Next</a>
139139
{% endif %}
140-
140+
141141
<ul class="pagination-list">
142142
{% if page_obj.number != 1 %}
143143
<li>
@@ -156,8 +156,8 @@
156156
{% endif %}
157157
<li>
158158
<a
159-
class="pagination-link is-current"
160-
disabled
159+
class="pagination-link is-current"
160+
disabled
161161
aria-label="Page {{ page_obj.number }}"
162162
aria-current="page">
163163
{{ page_obj.number|intcomma }}
@@ -190,7 +190,7 @@
190190

191191
<script>
192192
let $showClippedButton = getAll("button.show-clipped");
193-
193+
194194
$showClippedButton.forEach(function ($el) {
195195
$el.addEventListener("click", function () {
196196
$el.parentNode.classList.toggle("is-clipped-list");

vulnerabilities/templates/vulnerability_search_box.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
</div>
1919
<div class="panel-block">
2020
<div class="pb-3 width-100-pct">
21-
<form
21+
<form
2222
action="{% url 'vulnerability_search' %}"
23-
method="get"
24-
name="vulnerability_form"
23+
method="get"
24+
name="vulnerability_form"
2525
onsubmit="return validateVulnForm()"
2626
>
2727
<div class="field has-addons mt-3">

0 commit comments

Comments
 (0)