Skip to content

Commit f8578f3

Browse files
committed
wip
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent b886d87 commit f8578f3

3 files changed

Lines changed: 114 additions & 122 deletions

File tree

vulnerabilities/templates/package_curation.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
<div class="container is-fluid">
1212
<div class="columns is-vcentered mb-5">
1313
<div class="column">
14-
<h1 class="title is-3">Curation Dashboard</h1>
14+
<h1 class="title is-3">Advisory Curation</h1>
1515
<h2 class="subtitle is-5 has-text-grey">{{ vulnerability_id }}</h2>
1616
</div>
1717

1818
<div class="column is-narrow">
1919
<div class="box p-4 has-background-white shadow-soft" style="min-width: 260px; border-radius: 5px;">
2020
<div class="is-flex is-justify-content-space-between is-align-items-center mb-2">
21-
<span class="is-size-7 has-text-grey-dark uppercase has-text-weight-bold mr-2 mt-1">
21+
<span class="is-size-6 has-text-grey-dark uppercase has-text-weight-bold mr-2">
2222
Progress
2323
</span>
2424
<span class="tag is-info is-light has-text-weight-bold" id="progress-text">0 / 0</span>
2525
</div>
26-
<progress class="progress is-info is-small mb-0" id="main-progress" value="0" max="100"></progress>
26+
<progress class="progress is-info is-small mb-0" id="progress" value="0" max="100"></progress>
2727
</div>
2828
</div>
2929

@@ -36,7 +36,7 @@ <h3 class="title is-5">Advisory Summaries</h3>
3636
{% for avid, text in advisory_summaries.items %}
3737
<div class="notification is-info is-light p-3 mb-3">
3838
<p><strong>{{ avid }}</strong></p>
39-
<div class="summary-text">{{ text|normalize_links|urlize }}</div>
39+
<div class="text summary-text is-2">{{ text|normalize_links|urlize }}</div>
4040
</div>
4141
{% empty %}
4242
<div class="notification is-light p-3 mb-3 has-text-grey">
@@ -50,7 +50,7 @@ <h3 class="title is-5">Advisory Summaries</h3>
5050
<div class="box">
5151
<div class="mb-4">
5252
<h4 class="title is-4 mb-1" id="current-purl"></h4>
53-
<p class="help" id="conflict-reason"></p>
53+
<p class="text is-5" id="conflict-reason"></p>
5454
</div>
5555

5656
<div class="table-container" style="max-height: 800px; overflow-y: auto; border: 1px solid #dbdbdb; border-radius: 6px;">
@@ -80,7 +80,7 @@ <h4 class="title is-4 mb-1" id="current-purl"></h4>
8080
</button>
8181
<button class="button is-info is-hidden" id="finish-btn" disabled>
8282
<span class="icon"><i class="fa fa-check"></i></span>
83-
<span>Validate</span>
83+
<span>Submit</span>
8484
</button>
8585
</div>
8686
</div>
@@ -97,5 +97,5 @@ <h4 class="title is-4 mb-1" id="current-purl"></h4>
9797
const baseAdvisoryUrl = "{% url 'advisory_details' 0 %}";
9898
const curationItems = {{ curation_items|safe }};
9999
</script>
100-
<script src="{% static 'js/package_curation.min.js' %}"></script>
100+
<script src="{% static 'js/package_curation.js' %}"></script>
101101
{% endblock %}

vulnerablecode/static/css/package_curation.css

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646
}
4747

4848

49-
.curation-cell,
49+
/* .curation-cell,
5050
.advisory-cell,
5151
#curation-body td,
5252
.folded-row-marker,
5353
.range-data-cell,
5454
.help-instructions {
5555
font-size: 0.8rem !important;
56-
}
56+
} */
5757

5858
.curation-cell {
5959
cursor: pointer;
@@ -74,11 +74,11 @@
7474
cursor: not-allowed;
7575
}
7676

77-
.advisory-cell {
77+
/* .advisory-cell {
7878
text-align: center !important;
7979
vertical-align: middle !important;
8080
border: 1px solid #dbdbdb !important;
81-
}
81+
} */
8282

8383
.folded-row-marker,
8484
.range-row-marker {
@@ -89,28 +89,28 @@
8989
background-color: #f5f5f5;
9090
}
9191

92-
.folded-row-marker {
92+
/* .folded-row-marker {
9393
height: 30px;
94-
}
94+
} */
9595

96-
.folded-row-marker:hover,
96+
/* .folded-row-marker:hover,
9797
.range-row-marker:hover {
9898
background-color: #ededed;
9999
color: #0a0a0a;
100-
}
100+
} */
101101

102-
.folded-row-marker .icon {
102+
/* .folded-row-marker .icon {
103103
transition: transform 0.2s ease;
104-
}
104+
} */
105105

106106
.folded-row-marker.is-expanded .icon {
107107
transform: rotate(180deg);
108108
}
109109

110110
.range-row-marker {
111-
font-size: 0.8rem;
112-
padding: 6px 0;
113-
border: 1px solid #dbdbdb !important;
111+
/* font-size: 0.8rem; */
112+
/* padding: 6px 0; */
113+
/* border: 1px solid #dbdbdb !important; */
114114
}
115115

116116
.range-data-cell {
@@ -133,7 +133,6 @@
133133
}
134134

135135
.summary-text {
136-
font-size: 0.85rem;
137136
line-height: 1.4;
138137
white-space: pre-wrap;
139138
word-break: break-word;
@@ -168,7 +167,7 @@
168167
flex-wrap: wrap;
169168
}
170169

171-
.advisory-link .icon {
170+
/* .advisory-link .icon {
172171
font-size: 0.75rem;
173172
flex-shrink: 0;
174-
}
173+
} */

0 commit comments

Comments
 (0)