Skip to content

Commit

Permalink
Fix some linting issues.
Browse files Browse the repository at this point in the history
Ignore H021 (inline styles), swap to `url_for` where applicable from static links, and update image tags with width, height, and alt attributes.
  • Loading branch information
b-rowan committed Aug 23, 2024
1 parent 179834d commit d8e6a30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .djlintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"ignore": "H030,H031"
"ignore": "H030,H031,H021"
}
9 changes: 5 additions & 4 deletions goosebit/ui/templates/nav.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@
<body data-bs-theme="dark">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="/ui/home">
<a class="navbar-brand" href="{{ request.url_for("home_ui") }}">
<img src="{{ request.url_for('static', path='svg/goosebit-logo.svg') }}"
class="me-2"
style="height: 30px;
width: 30px" />
height="30px"
width="30px"
alt="gooseBit logo" />
gooseBit
</a>
<button class="navbar-toggler"
Expand All @@ -74,7 +75,7 @@
{% endfor %}
</div>
<div class="navbar-nav d-flex flex-fill justify-content-end">
<a class="nav-link" href="/logout">Logout<i class="bi bi-box-arrow-right ps-2"></i></a>
<a class="nav-link" href="{{ request.url_for("logout") }}">Logout<i class="bi bi-box-arrow-right ps-2"></i></a>
</div>
</div>
</div>
Expand Down

0 comments on commit d8e6a30

Please sign in to comment.