|
73 | 73 | <section class="section pt-0"> |
74 | 74 | <div class="details-container"> |
75 | 75 | <article class="panel is-info panel-header-only"> |
76 | | - <p class="panel-heading py-2 is-size-6"> |
77 | | - Package details |
78 | | - </p> |
| 76 | + <div class="panel-heading py-2 is-size-6"> |
| 77 | + <div class="field is-grouped is-grouped-multiline"> |
| 78 | + Package details: |
| 79 | + <div class="control"> |
| 80 | + <div class="tags has-addons"> |
| 81 | + <span class="tag is-black custom">purl</span> |
| 82 | + <span class="tag is-white custom"> |
| 83 | + {{ package.package_url }} |
| 84 | + </span> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </div> |
79 | 89 | </article> |
80 | 90 |
|
81 | 91 | <div class="tabs is-boxed" id="tabs"> |
|
129 | 139 | <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth"> |
130 | 140 | <thead> |
131 | 141 | <tr> |
132 | | - <th style="width: 200px;">Vulnerability</th> |
| 142 | + <th style="width: 175px;">Vulnerability</th> |
133 | 143 | <th>Summary</th> |
134 | | - <th style="width: 200px;">Aliases</th> |
| 144 | + <th style="width: 225px;">Aliases</th> |
135 | 145 | </tr> |
136 | 146 | </thead> |
137 | 147 | <tbody> |
|
140 | 150 | {% for vuln in impacted_vuln %} |
141 | 151 | <tr> |
142 | 152 | <td> |
143 | | - <a href="{% url 'vulnerability_view' vuln.pk %}" target="_self">{{ vuln.vulnerability_id }}</a> |
| 153 | + <a href="{% url 'vulnerability_view' vuln.pk %}?vuln_id={{ vuln.vulnerability_id }}" target="_self">{{ vuln.vulnerability_id }}</a> |
144 | 154 | </td> |
145 | 155 | <td> |
146 | 156 | {{ vuln.summary }} |
147 | 157 | </td> |
148 | 158 | <td> |
149 | 159 | {% for alias in vuln.alias %} |
150 | | - {{ alias }} |
151 | | - <br /> |
| 160 | + {% if alias.url %} |
| 161 | + <a href={{ alias.url }} target="_blank">{{ alias }}<i class="fa fa-external-link fa_link_custom"></i></a> |
| 162 | + <br /> |
| 163 | + {% else %} |
| 164 | + {{ alias }} |
| 165 | + <br /> |
| 166 | + {% endif %} |
152 | 167 | {% endfor %} |
153 | 168 | </td> |
154 | 169 | </tr> |
|
168 | 183 | <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth"> |
169 | 184 | <thead> |
170 | 185 | <tr> |
171 | | - <th style="width: 200px;">Vulnerability</th> |
| 186 | + <th style="width: 175px;">Vulnerability</th> |
172 | 187 | <th>Summary</th> |
173 | | - <th style="width: 200px;">Aliases</th> |
| 188 | + <th style="width: 225px;">Aliases</th> |
174 | 189 | </tr> |
175 | 190 | </thead> |
176 | 191 | <tbody> |
177 | 192 | {% if resolved_vuln %} |
178 | 193 | {% for vuln in resolved_vuln %} |
179 | 194 | <tr> |
180 | 195 | <td> |
181 | | - <a href="{% url 'vulnerability_view' vuln.pk %}" target="_self">{{ vuln.vulnerability_id }}</a> |
| 196 | + <a href="{% url 'vulnerability_view' vuln.pk %}?vuln_id={{ vuln.vulnerability_id }}" target="_self">{{ vuln.vulnerability_id }}</a> |
182 | 197 | </td> |
183 | 198 | <td> |
184 | 199 | {{ vuln.summary }} |
185 | 200 | </td> |
186 | 201 | <td> |
187 | 202 | {% for alias in vuln.alias %} |
188 | | - {{ alias }} |
189 | | - <br /> |
| 203 | + {% if alias.url %} |
| 204 | + <a href={{ alias.url }} target="_blank">{{ alias }}<i class="fa fa-external-link fa_link_custom"></i></a> |
| 205 | + <br /> |
| 206 | + {% else %} |
| 207 | + {{ alias }} |
| 208 | + <br /> |
| 209 | + {% endif %} |
190 | 210 | {% endfor %} |
191 | 211 | </td> |
192 | 212 | </tr> |
|
0 commit comments