Skip to content

Commit

Permalink
Add the credits info to the vulnerability page
Browse files Browse the repository at this point in the history
  • Loading branch information
zahraaalizadeh committed May 9, 2024
1 parent 737d29b commit 22f43d3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions gcp/appengine/frontend3/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,29 @@ dl.vulnerability-details,
}
}


dd.credits {
ul {
padding: 0;
}

li.credit {
margin: 0 0 20px 0;

&:not(:last-child) {
margin-bottom: 10px;
}
}

.contact li {
margin: 5px 40px 10px 0;
display: inline-flex;
flex-direction: row;
overflow-wrap: break-word;
}
}


pre {
white-space: pre-wrap;
overflow: auto;
Expand Down
23 changes: 23 additions & 0 deletions gcp/appengine/frontend3/src/templates/vulnerability.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,29 @@ <h1 class="title">{{ vulnerability.id }}</h1>
<dd class="details">
{{ vulnerability.details|markdown|safe -}}
</dd>
{% if vulnerability.credits -%}
<dt class="credits">Credits</dt>
<dd class="credits">
<ul>
{% for credit in vulnerability.credits -%}
<li class="credit">
<ul>
<li>{{ credit.name }}{%- if 'type' in credit -%} - {{ credit.type }}{%- endif -%}</li>
{%- if 'contact' in credit -%}
<li>
<ul class="contact">
{%- for item in credits.contact -%}
<li><a href="{{ item }}" target="_blank" rel="noopener noreferrer">{{ item }}</a></li>
{%- endfor -%}
</ul>
</li>
{%- endif -%}
</ul>
</li>
{% endfor -%}
</ul>
</dd>
{% endif %}
<dt>References</dt>
<dd>
<ul class="links">
Expand Down

0 comments on commit 22f43d3

Please sign in to comment.