Skip to content

Commit

Permalink
feat(ui): add origin and fix in version (#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored and bnjjj committed Aug 31, 2018
1 parent 8a3799e commit cb2bb9e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
14 changes: 14 additions & 0 deletions ui/src/app/shared/vulnerability/list/vulnerabilities.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@
<div class="description">
<markdown [data]="v.description"></markdown>
</div>
<a class="pointing" (click)="showMore = !showMore">
<span *ngIf="showMore">{{ 'vunerability_hide' | translate }}</span>
<span *ngIf="!showMore">{{ 'vulnerability_showmore' | translate }}</span>
</a>
<div class="more" *ngIf="showMore">
<div class="origin">
<h4>{{ 'vulnerability_origin' | translate }}</h4>
<pre>{{v.origin}}</pre>
</div>
<div class="fixin">
<h4>{{ 'vulnerability_fixin' | translate }}</h4>
<pre>{{v.fix_in}}</pre>
</div>
</div>
</div>
</li>
</ul>
Expand Down
16 changes: 13 additions & 3 deletions ui/src/app/shared/vulnerability/list/vulnerabilities.list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ ul {

.resume {
padding-top: 10px;

.description {
pre {
white-space: initial;
}
}
.more {
margin-top: 10px;

pre {
white-space: pre-line;
}
}
}
}
li:first-child {
Expand All @@ -85,6 +98,3 @@ ul {
}
}

pre {
white-space: initial;
}
4 changes: 4 additions & 0 deletions ui/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,12 @@
"vcs_ssh_key" : "SSH key",
"vcs_pgp_key" : "PGP key",

"vulnerability_fixin" : "Fix in",
"vunerability_hide" : "Hide",
"vulnerability_ignore": "Ignore",
"vulnerability_no" : "No vulnerabilities detected",
"vulnerability_origin": "Origin",
"vulnerability_showmore" : "Show more",
"vulnerability_updated" : "Vulnerability updated",

"warning_context": "Context",
Expand Down
4 changes: 4 additions & 0 deletions ui/src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,12 @@
"vcs_ssh_key" : "Clé SSH",
"vcs_pgp_key" : "Clé PGP",

"vulnerability_fixin" : "Fixé en",
"vunerability_hide" : "Cacher",
"vulnerability_ignore": "Ignorer",
"vulnerability_no" : "Aucune vulnérabilité détectée",
"vulnerability_origin": "Origine",
"vulnerability_showmore" : "Voir plus",
"vulnerability_updated" : "Vulnérabilité mise à jour",

"warning_context": "Contexte",
Expand Down

0 comments on commit cb2bb9e

Please sign in to comment.