8000 feat(ui): add origin and fix in version (#3277) · ovh/cds@cb2bb9e · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit cb2bb9e

Browse files
sguiheuxbnjjj
authored andcommitted
feat(ui): add origin and fix in version (#3277)
1 parent 8a3799e commit cb2bb9e

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

ui/src/app/shared/vulnerability/list/vulnerabilities.list.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@
2727
<div class="description">
2828
<markdown [data]="v.description"></markdown>
2929
</div>
30+
<a class="pointing" (click)="showMore = !showMore">
31+
<span *ngIf="showMore">{{ 'vunerability_hide' | translate }}</span>
32+
<span *ngIf="!showMore">{{ 'vulnerability_showmore' | translate }}</span>
33+
</a>
34+
<div class="more" *ngIf="showMore">
35+
<div class="origin">
36+
<h4>{{ 'vulnerability_origin' | translate }}</h4>
37+
<pre>{{v.origin}}</pre>
38+
</div>
39+
<div class="fixin">
40+
<h4>{{ 'vulnerability_fixin' | translate }}</h4>
41+
<pre>{{v.fix_in}}</pre>
42+
</div>
43+
</div>
3044
</div>
3145
</li>
3246
</ul>

ui/src/app/shared/vulnerability/list/vulnerabilities.list.scss

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,19 @@ ul {
6868

6969
.resume {
7070
padding-top: 10px;
71+
72+
.description {
73+
pre {
74+
white-space: initial;
75+
}
76+
}
77+
.more {
78+
margin-top: 10px;
79+
80+
pre {
81+
white-space: pre-line;
82+
}
83+
}
7184
}
7285
}
7386
li:first-child {
@@ -85,6 +98,3 @@ ul {
8598
}
8699
}
87100

88-
pre {
89-
white-space: initial;
90-
}

ui/src/assets/i18n/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,12 @@
717717
"vcs_ssh_key" : "SSH key",
718718
"vcs_pgp_key" : "PGP key",
719719

720+
"vulnerability_fixin" : "Fix in",
721+
"vunerability_hide" : "Hide",
720722
"vulnerability_ignore": "Ignore",
721723
"vulnerability_no" : "No vulnerabilities detected",
724+
"vulnerability_origin": "Origin",
725+
"vulnerability_showmore" : "Show more",
722726
"vulnerability_updated" : "Vulnerability updated",
723727

724728
"warning_context": "Context",

ui/src/assets/i18n/fr.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,12 @@
717717
"vcs_ssh_key" : "Clé SSH",
718718
"vcs_pgp_key" : "Clé PGP",
719719

720+
"vulnerability_fixin" : "Fixé en",
721+
"vunerability_hide" : "Cacher",
720722
"vulnerability_ignore": "Ignorer",
721723
"vulnerability_no" : "Aucune vulnérabilité détectée",
724+
"vulnerability_origin": "Origine",
725+
"vulnerability_showmore" : "Voir plus",
722726
"vulnerability_updated" : "Vulnérabilité mise à jour",
723727

724728
"warning_context": "Contexte",

0 commit comments

Comments
 (0)
0