Skip to content

Commit

Permalink
Update the title to display summary instead of id
Browse files Browse the repository at this point in the history
Prior to this change, in the vulnerability page, id of the
vulnerability was displayed as title.

This change updates the title to display the human readable
summary for the title, and adds ID as an data decsription.
  • Loading branch information
zahraaalizadeh committed Apr 26, 2024
1 parent aad1acb commit 190476b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gcp/appengine/frontend3/src/templates/vulnerability.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
<div class="mdc-layout-grid">
<div class="mdc-layout-grid__inner">
<div class="mdc-layout-grid__cell--span-12">
<h1 class="title">{{ vulnerability.id }}</h1>
<h1 class="title">{{ vulnerability.summary }}</h1>
</div>
<div class="mdc-layout-grid__cell--span-12">
<dl class="vulnerability-details">
<dt>ID</dt>
<dd>{{ vulnerability.id }}</dd>
{%- if vulnerability.human_source_link -%}
<dt>Source</dt>
<dd><a href="{{ vulnerability.human_source_link }}" target="_blank" rel="noopener noreferrer">{{
Expand Down

0 comments on commit 190476b

Please sign in to comment.