Skip to content

Commit

Permalink
Merge branch 'main' into issue-OWASP-BLT#1206
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT authored Feb 4, 2024
2 parents 17d700a + 97e60bb commit 6fb8f5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/templates/includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="flex items-center justify-between">
<div class="flex items-center justify-start rtl:justify-end">
<!-- Ham Menu -->
<button data-drawer-target="logo-sidebar" data-drawer-toggle="logo-sidebar" aria-controls="logo-sidebar" type="button" class="inline-flex items-center p-2 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600">
<button id="hamburger-button" data-drawer-target="logo-sidebar" data-drawer-toggle="logo-sidebar" aria-controls="logo-sidebar" type="button" class="inline-flex items-center p-2 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600">
<svg class="w-6 h-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path clip-rule="evenodd" fill-rule="evenodd" d="M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zm0 10.5a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5a.75.75 0 01-.75-.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10z"></path>
</svg>
Expand Down
9 changes: 9 additions & 0 deletions website/templates/includes/sidenav.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,13 @@
</li>
</ul>
</div>
<script>
document.addEventListener('DOMContentLoaded', function () {
const hamburgerButton = document.getElementById('hamburger-button');
const sidebar = document.getElementById('sidebar');
hamburgerButton.addEventListener('click', function () {
sidebar.classList.toggle('-translate-x-full');
});
});
</script>
</aside>
5 changes: 2 additions & 3 deletions website/templates/issue2.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,14 @@ <h2 class="mb-8 text-4xl font-bold text-gray-900 ">More Reports from {{ object.u
<div class="grid gap-12 sm:grid-cols-2 lg:grid-cols-4">

{% for issue in more_issues %}
<article class="max-w-xs">
<article class="max-w-xs h-[100%]">
<a href="">
<img src="{{ MEDIA_URL }}{{ issue.screenshots__image }}" class="mb-5 rounded-lg" alt="Image 1">
<img src="{{ MEDIA_URL }}{{ issue.screenshots__image }}" class="mb-5 rounded-lg object-fill h-[70%]" alt="Image 1">
</a>
<h2 class="mb-2 text-xl font-bold leading-tight text-gray-900 ">
<a href="{% url 'issue_view2' issue.id %}">{{ issue.description }}</a>
</h2>
<a href="#" class="inline-flex items-center font-medium underline underline-offset-4 text-primary-600 hover:no-underline">

Read in {{ issue.markdown_description|length|divide:200 }} minutes
</a>
</article>
Expand Down

0 comments on commit 6fb8f5b

Please sign in to comment.