Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
Reformat user settings HTML using djLint
Browse files Browse the repository at this point in the history
The main branch introduced djLint formatting rules after this feature
branch was created.  This reformats the compounded HTML introduced in
this branch to comply with the new rules.
  • Loading branch information
lunkwill42 committed Oct 28, 2024
1 parent 51c21eb commit 46a65de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
4 changes: 3 additions & 1 deletion src/argus_htmx/templates/htmx/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
</li>
<li>{% include "htmx/themes/theme_dropdown.html" %}</li>
<li>{% include "htmx/dateformat/_dateformat_dropdown.html" %}</li>
<li><a href="{% url 'htmx:user-settings' %}">Settings&hellip;</a></li>
<li>
<a href="{% url 'htmx:user-settings' %}">Settings…</a>
</li>
<li>
<form class="flex" action="{% url "htmx:logout" %}" method="post">
{% csrf_token %}
Expand Down
30 changes: 12 additions & 18 deletions src/argus_htmx/templates/htmx/user/settings.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
{% extends "htmx/base.html" %}

{% block main %}
<h1 class="sr-only">{{ page_title }}</h1>
<section id="user-settings" class="card">
<h2 class="card-title">User settings</h2>
<ul class="menu card-body">
<li class="menu-title">
Logged in as: <span class="text-info">{{ request.user }}</span>
<div class="divider divider-secondary my-0"></div>
</li>
<li>
{% include 'htmx/themes/theme_dropdown.html' %}
</li>
<li>
{% include 'htmx/dateformat/_dateformat_dropdown.html' %}
</li>
</ul>

</section>
<h1 class="sr-only">{{ page_title }}</h1>
<section id="user-settings" class="card">
<h2 class="card-title">User settings</h2>
<ul class="menu card-body">
<li class="menu-title">
Logged in as: <span class="text-info">{{ request.user }}</span>
<div class="divider divider-secondary my-0"></div>
</li>
<li>{% include "htmx/themes/theme_dropdown.html" %}</li>
<li>{% include "htmx/dateformat/_dateformat_dropdown.html" %}</li>
</ul>
</section>
{% endblock main %}

0 comments on commit 46a65de

Please sign in to comment.