Skip to content

Commit

Permalink
Score added in title, FAQ no longer collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
M4RC02U1F4A4 committed Aug 2, 2023
1 parent 07b3cf6 commit 915938a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/app/templates/fast.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5 fw-bolder">{{ cve['CVE'] }}</h1>
<h1 class="modal-title fs-5 fw-bolder">{{ cve['CVE'] }} - {{ cve['CVSSScoreSets'][0]['BaseScore'] }}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Expand Down Expand Up @@ -271,10 +271,9 @@ <h1 class="modal-title fs-5 fw-bolder">{{ cve['CVE'] }}</h1>
<!-- faq -->
<div class="row mt-2">
<p class="fw-bolder fs-4 pr-3 text-center">FAQ</p>
<button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#faq{{ cve['CVE'] }}">View</button>
{% for note in cve['Notes'] %}
{% if note['Title'] == 'FAQ' %}
<div class="collapse" id="faq{{ cve['CVE'] }}">
<div id="faq{{ cve['CVE'] }}">
{{note['Value'].replace('<p><strong>', '<p class="fs-6 fw-bolder">').replace('</strong></p>', '')|safe}}
</div>
{% endif %}
Expand Down

0 comments on commit 915938a

Please sign in to comment.