Skip to content

Commit 5752e23

Browse files
committed
Workflow Checks
Signed-off-by: Rishi Garg <rishigarg2503@gmail.com>
1 parent 3b21946 commit 5752e23

2 files changed

Lines changed: 1 addition & 54 deletions

File tree

vulnerabilities/templates/includes/pagination.html

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -12,52 +12,29 @@
1212
</select>
1313
</div>
1414
</div>
15-
<<<<<<< Updated upstream
1615

1716
{% if page_obj.paginator.num_pages > 1 %}
1817
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
1918
{% if page_obj.has_previous %}
2019
<a href="?page={{ page_obj.previous_page_number }}&search={{ search|urlencode }}&page_size={{ current_page_size }}"
21-
=======
22-
23-
{% if page_obj.paginator.num_pages > 1 %}
24-
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
25-
{% if page_obj.has_previous %}
26-
<a href="{{ base_url }}&page={{ page_obj.previous_page_number }}"
27-
>>>>>>> Stashed changes
2820
class="pagination-previous">Previous</a>
2921
{% else %}
3022
<button class="pagination-previous" disabled>Previous</button>
3123
{% endif %}
32-
<<<<<<< Updated upstream
3324

3425
{% if page_obj.has_next %}
3526
<a href="?page={{ page_obj.next_page_number }}&search={{ search|urlencode }}&page_size={{ current_page_size }}"
36-
=======
37-
38-
{% if page_obj.has_next %}
39-
<a href="{{ base_url }}&page={{ page_obj.next_page_number }}"
40-
>>>>>>> Stashed changes
4127
class="pagination-next">Next</a>
4228
{% else %}
4329
<button class="pagination-next" disabled>Next</button>
4430
{% endif %}
45-
<<<<<<< Updated upstream
46-
47-
=======
48-
49-
>>>>>>> Stashed changes
5031
<ul class="pagination-list">
5132
{% for page_num in page_range %}
5233
{% if page_num == '...' %}
5334
<li><span class="pagination-ellipsis">&hellip;</span></li>
5435
{% else %}
5536
<li>
56-
<<<<<<< Updated upstream
5737
<a href="?page={{ page_num }}&search={{ search|urlencode }}&page_size={{ current_page_size }}"
58-
=======
59-
<a href="{{ base_url }}&page={{ page_num }}"
60-
>>>>>>> Stashed changes
6138
class="pagination-link {% if page_num == page_obj.number %}is-current{% endif %}"
6239
aria-label="Go to page {{ page_num }}"
6340
{% if page_num == page_obj.number %}aria-current="page"{% endif %}>
@@ -69,7 +46,6 @@
6946
</ul>
7047
</nav>
7148
{% endif %}
72-
<<<<<<< Updated upstream
7349
</div>
7450

7551
<style>
@@ -98,26 +74,3 @@
9874
window.location.href = newUrl;
9975
}
10076
</script>
101-
=======
102-
</div>
103-
104-
<style>
105-
.select.is-disabled {
106-
opacity: 0.7;
107-
cursor: not-allowed;
108-
}
109-
.select.is-disabled select {
110-
cursor: not-allowed;
111-
}
112-
</style>
113-
114-
<script>
115-
function handlePageSizeChange(value) {
116-
const url = new URL(window.location.href);
117-
const params = new URLSearchParams(url.search);
118-
params.set('page_size', value);
119-
params.delete('page');
120-
window.location.href = `${url.pathname}?${params.toString()}`;
121-
}
122-
</script>
123-
>>>>>>> Stashed changes

vulnerabilities/views.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,10 @@ def get_purl_version_class(purl: models.Package):
6565

6666

6767
class PackageSearch(PaginatedListViewMixin, ListView):
68-
<<<<<<< Updated upstream
6968
"""
70-
View for searching and displaying packages with pagination.
69+
View for searching & displaying packages with pagination.
7170
"""
7271

73-
=======
74-
>>>>>>> Stashed changes
7572
model = models.Package
7673
template_name = "packages.html"
7774
ordering = ["type", "namespace", "name", "version"]
@@ -92,13 +89,10 @@ def get_queryset(self, query=None):
9289

9390

9491
class VulnerabilitySearch(PaginatedListViewMixin, ListView):
95-
<<<<<<< Updated upstream
9692
"""
9793
View for searching and displaying vulnerabilities with pagination.
9894
"""
9995

100-
=======
101-
>>>>>>> Stashed changes
10296
model = models.Vulnerability
10397
template_name = "vulnerabilities.html"
10498
ordering = ["vulnerability_id"]

0 commit comments

Comments
 (0)