Skip to content

Commit cacbf8b

Browse files
committed
fix: remove bottom margin from navbar
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent c354ac0 commit cacbf8b

18 files changed

Lines changed: 182 additions & 17 deletions

vulnerabilities/templates/advisory_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% block content %}
1313

1414
{% if advisory %}
15-
<section class="section pt-0">
15+
<section class="section pt-4">
1616
<div class="details-container">
1717
<article class="panel is-info panel-header-only">
1818
<div class="panel-heading py-2 is-size-6">

vulnerabilities/templates/advisory_package_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% block content %}
1313

1414
{% if advisoryv2 %}
15-
<section class="section pt-0">
15+
<section class="section pt-4">
1616
<div class="details-container">
1717
<article class="panel is-info panel-header-only">
1818
<div class="panel-heading py-2 is-size-6">
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{% extends "base.html" %}
2+
{% load utils %}
3+
4+
{% block title %}
5+
Advisory To-Dos
6+
{% endblock %}
7+
8+
{% block extrahead %}
9+
<style>
10+
thead th {
11+
border-bottom: none !important;
12+
}
13+
14+
tbody tr:hover {
15+
background-color: #e0e0e0 !important;
16+
cursor: pointer;
17+
}
18+
19+
tbody tr:nth-child(even):hover {
20+
background-color: #d3d3d3 !important;
21+
}
22+
23+
.column {
24+
word-break: break-word;
25+
}
26+
</style>
27+
{% endblock %}
28+
29+
30+
{% block content %}
31+
<div class="columns mt-4">
32+
<div class="column">
33+
</div>
34+
35+
<div class="column is-four-fifths">
36+
<div class="content is-normal">
37+
<h1>Advisory To-Dos</h1>
38+
<hr />
39+
</div>
40+
<form method="get" class="box px-6 mx-0">
41+
42+
<div class="field has-addons">
43+
<div class="control is-expanded has-icons-right">
44+
{{ form.search }}
45+
46+
{% if form.search.value %}
47+
<a href="?{% querystring request search='' %}"
48+
class="icon is-right"
49+
style="pointer-events: auto; cursor: pointer;">
50+
51+
</a>
52+
{% endif %}
53+
</div>
54+
55+
<div class="control">
56+
<button type="submit" class="button is-info">
57+
<i class="fa fa-search mx-1"></i>
58+
</button>
59+
</div>
60+
</div>
61+
</form>
62+
63+
<div class="box">
64+
<!-- <div class="column has-text-right">
65+
<p class="has-text-weight-semibold">
66+
{{ active_pipeline_count|default:0 }} active pipeline{{ active_pipeline_count|default:0|pluralize }},
67+
{{ disabled_pipeline_count|default:0 }} disabled pipeline{{ disabled_pipeline_count|default:0|pluralize }}
68+
</p>
69+
</div> -->
70+
<table class="table is-striped is-hoverable is-fullwidth">
71+
<thead>
72+
<tr>
73+
<th colspan="4">
74+
<div class="box is-small">
75+
<div class="columns is-vcentered">
76+
<div class="column has-text-centered" style="flex: 0 0 15%; font-weight: bold;">CVE</div>
77+
<div class="column has-text-centered" style="flex: 0 0 20%; font-weight: bold;">Aliases</div>
78+
<div class="column has-text-centered" style="flex: 0 0 15%; font-weight: bold;">Resolved</div>
79+
<div class="column has-text-centered" style="flex: 0 0 10%; font-weight: bold;"># Advisories</div>
80+
<div class="column has-text-centered" style="flex: 0 0 40%; font-weight: bold;">Issue</div>
81+
</div>
82+
</div>
83+
</th>
84+
</tr>
85+
<tr>
86+
<th colspan="4">
87+
<form method="get">
88+
<input type="hidden" name="search" value="{{ form.search.value|default:'' }}">
89+
90+
<div class="columns is-vcentered px-1">
91+
<div class="column has-text-centered" style="flex: 0 0 15%;"></div>
92+
<div class="column has-text-centered" style="flex: 0 0 20%;"></div>
93+
94+
<div class="column has-text-centered" style="flex: 0 0 15%;">
95+
<div class="select is-fullwidth">
96+
<select name="resolved" onchange="this.form.submit()">
97+
{% for val, label in form.fields.resolved.choices %}
98+
<option value="{{ val }}"
99+
{% if form.resolved.value == val %}selected{% endif %}>
100+
{{ label }}
101+
</option>
102+
{% endfor %}
103+
</select>
104+
</div>
105+
</div>
106+
107+
<div class="column has-text-centered" style="flex: 0 0 10%;"></div>
108+
109+
<div class="column has-text-centered" style="flex: 0 0 40%;">
110+
<div class="select is-fullwidth">
111+
<select name="issue_type" onchange="this.form.submit()">
112+
{% for val, label in form.fields.issue_type.choices %}
113+
<option value="{{ val }}"
114+
{% if form.issue_type.value == val %}selected{% endif %}>
115+
{{ label }}
116+
</option>
117+
{% endfor %}
118+
</select>
119+
</div>
120+
</div>
121+
</div>
122+
</form>
123+
</th>
124+
</tr>
125+
</thead>
126+
127+
<tbody>
128+
{% for todo in todo_list %}
129+
<tr>
130+
<td colspan="4">
131+
<a href="{% url 'todo-detail' todo_id=todo.todo_id %}" class="has-text-info">
132+
<div class="columns px-1 is-vcentered">
133+
<div class="column has-text-centered" style="flex: 0 0 15%;">
134+
{{ todo.alias }}
135+
</div>
136+
<div class="column has-text-centered" style="flex: 0 0 20%;">
137+
{{ todo.oldest_advisory_date|default:"NA" }}
138+
</div>
139+
<div class="column has-text-centered has-text-grey" style="flex: 0 0 15%;">
140+
{{ todo.is_resolved|yesno:"Yes,No" }}
141+
</div>
142+
<div class="column has-text-centered has-text-grey" style="flex: 0 0 10%;">
143+
{{ todo.advisories.all|length }}
144+
</div>
145+
<div class="column has-text-centered has-text-grey" style="flex: 0 0 40%;">
146+
{{ todo.get_issue_type_display }}
147+
</div>
148+
</div>
149+
</a>
150+
</td>
151+
</tr>
152+
{% empty %}
153+
<tr>
154+
<td colspan="4" class="has-text-centered">No To-Dos found.</td>
155+
</tr>
156+
{% endfor %}
157+
</tbody>
158+
</table>
159+
</div>
160+
{% include "includes/pagination_v2.html" with page_obj=page_obj %}
161+
</div>
162+
<div class="column"></div>
163+
</div>
164+
{% endblock %}
165+

vulnerabilities/templates/fixing_advisories.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% load widget_tweaks %}
44

55
{% block content %}
6-
<div class="is-max-desktop mb-3">
6+
<div class="is-max-desktop mb-3 mt-4">
77
<section class="mx-5">
88
<div class="is-flex" style="justify-content: space-between;">
99
<div>

vulnerabilities/templates/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212
{% endif %}
1313

14-
<nav class="navbar is-dark mb-5 border-bottom-radius" role="navigation" aria-label="main navigation"
14+
<nav class="navbar is-dark border-bottom-radius" role="navigation" aria-label="main navigation"
1515
style="border-radius: 0;">
1616
<div class="navbar-brand ml-3">
1717
<a class="navbar-item is-size-4 has-text-weight-bold {% active_item 'home' %}" href="{% url 'home' %}">

vulnerabilities/templates/package_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% endblock %}
1010

1111
{% block content %}
12-
<section class="section pt-0">
12+
<section class="section pt-4">
1313
{% include "package_search_box.html"%}
1414
</section>
1515

vulnerabilities/templates/package_details_v2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{% endblock %}
1111

1212
{% block content %}
13-
<section class="section pt-0">
13+
<section class="section pt-4">
1414
{% include "package_search_box_v2.html"%}
1515
</section>
1616

vulnerabilities/templates/package_search_box.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% load widget_tweaks %}
2-
<article class='panel is-info'>
2+
<article class='panel is-info pt-4'>
33
<div class='panel-heading py-2 is-size-6'>
44
Search for packages
55
<div class="dropdown is-hoverable has-text-weight-normal">

vulnerabilities/templates/package_search_box_v2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% load widget_tweaks %}
2-
<article class='panel is-info'>
2+
<article class='panel is-info pt-4'>
33
<div class='panel-heading py-2 is-size-6'>
44
Search for packages
55
<div class="dropdown is-hoverable has-text-weight-normal">

vulnerabilities/templates/packages.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% endblock %}
88

99
{% block content %}
10-
<section class="section pt-0">
10+
<section class="section pt-4">
1111
{% include "package_search_box.html" %}
1212
</section>
1313

0 commit comments

Comments
 (0)