Skip to content

Commit

Permalink
chg: [website] Minor improvements to the main/search page.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Oct 18, 2024
1 parent 3f0e9b8 commit 30167e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion website/web/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

{% endblock %}
</head>
<body >
<body>
<header>
<div class="container">
{% block navigation %}
Expand Down
9 changes: 5 additions & 4 deletions website/web/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
<div class="container-fluid">
<!-- Top Right Card Aligned in Parent Container -->
<div class="d-flex justify-content-end">
<div class="top-right-card">
<div id="commentsContainer" class="card d-none d-xl-block">
<div id="commentsContainer" class="top-right-card">
<div class="card d-none d-xl-block">
<div class="card-body">
<ul id="list-comments" class="list-group list-group-flush"></ul>
</div>
<div class="card-footer text-end text-muted">
<div class="card-footer d-flex justify-content-between align-items-center">
<span><a href="{{ url_for('comments_bp.list_comments') }}">More</a></span>
<a href="{{ url_for('comments_bp.feed_comments', format='atom') }}" title="Recent comments.">{{ render_icon('rss', color='#FFC107') }}</a>
</div>
</div>
Expand Down Expand Up @@ -331,7 +332,7 @@ <h5>All the vulnerabilites related to {{vendor}} - {{product}}</h5>
.then(response => response.json())
.then(result => {
if (result.metadata.count == 0) {
// document.getElementById("commentsContainer").style.display = 'none';
document.getElementById("commentsContainer").style.display = 'none';
} else {
document.getElementById("commentsContainer").style.display = 'block';
result.data
Expand Down

0 comments on commit 30167e0

Please sign in to comment.