Skip to content

Commit

Permalink
chg: [website] Improved bootstrap cards for the bundles.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jul 9, 2024
1 parent 9112e91 commit 615a7e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
11 changes: 8 additions & 3 deletions website/web/templates/user/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h3>Recent bundles</h3>
'<h5 class="card-title"><a href="/comment/<%= uuid %>"><%= title %></a> on <%= vulnerability_id %></h5>' +
'<h6 class="card-subtitle mb-2 text-body-secondary"><%= timestamp %></h6>' +
'<p class="card-text"><%= description %></p>' +
'<p class="card-text">More details about <a href="/vuln/<%= vulnerability_id %>"><%= vulnerability_id %></a>.</p>' +
'<a class="card-link" href="/vuln/<%= vulnerability_id %>"><%= vulnerability_id %></a>' +
'<% _.forEach(related_vulnerabilities, function(vuln) ' +
'{ %><a href="/vuln/<%= vuln %>"><%- vuln %></a> <% }); %>',
'</div>');
Expand Down Expand Up @@ -117,8 +117,13 @@ <h3>Recent bundles</h3>
'<h5 class="card-title"><a href="/bundle/<%= uuid %>"><%= name %></a></h5>' +
'<h6 class="card-subtitle mb-2 text-body-secondary"><%= timestamp %> by <a href="/user/<%= author_login %>"><%= author_name %></a></h6>' +
'<p class="card-text"><%= description %></p>' +
'Related vulnerabilities: <% _.forEach(related_vulnerabilities, function(vuln) ' +
'{ %><a href="/vuln/<%= vuln %>"><%- vuln %></a> <% }); %><br />' +
'<h5 class="card-text">Related vulnerabilities</h5>' +
'<div class="card" >' +
'<ul class="list-group list-group-flush">' +
'<% _.forEach(related_vulnerabilities, function(vuln) ' +
'{ %><li class="list-group-item"><a href="/vuln/<%= vuln %>"><%- vuln %></a></li><% }); %>' +
'</ul>' +
'</div>' +
'</div>');
fetch("{{ url_for('apiv1.bundle_bundles_list', author=user.login) }}")
.then(response => response.json())
Expand Down
9 changes: 7 additions & 2 deletions website/web/templates/vuln.html
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,13 @@ <h5 class="modal-title">Action not permitted</h5>
'<h5 class="card-title"><a href="/bundle/<%= uuid %>"><%= name %></a></h5>' +
'<h6 class="card-subtitle mb-2 text-body-secondary"><%= timestamp %> by <a href="/user/<%= author_login %>"><%= author_name %></a></h6>' +
'<p class="card-text"><%= description %></p>' +
'Related vulnerabilities: <% _.forEach(related_vulnerabilities, function(vuln) ' +
'{ %><a href="/vuln/<%= vuln %>"><%- vuln %></a> <% }); %><br />' +
'<h5 class="card-text">Related vulnerabilities</h5>' +
'<div class="card" >' +
'<ul class="list-group list-group-flush">' +
'<% _.forEach(related_vulnerabilities, function(vuln) ' +
'{ %><li class="list-group-item"><a href="/vuln/<%= vuln %>"><%- vuln %></a></li><% }); %>' +
'</ul>' +
'</div>' +
'</div>');
fetch("{{ url_for('apiv1.bundle_bundles_list', vuln_id=vulnerability_id) }}")
.then(response => response.json())
Expand Down

0 comments on commit 615a7e3

Please sign in to comment.