Skip to content

Commit

Permalink
Allow extending preferences page
Browse files Browse the repository at this point in the history
  • Loading branch information
elfjes authored Dec 9, 2024
1 parent 454cd88 commit 74011a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/1070.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
argus.htmx: allow extending preferences page
8 changes: 5 additions & 3 deletions src/argus/htmx/templates/htmx/user/preferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ <h2 class="card-title">User preferences</h2>
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>
<li>{% include "htmx/page_size/_page_size_dropdown.html" %}</li>
{% block preferences %}
<li>{% include "htmx/themes/_theme_dropdown.html" %}</li>
<li>{% include "htmx/dateformat/_dateformat_dropdown.html" %}</li>
<li>{% include "htmx/page_size/_page_size_dropdown.html" %}</li>
{% endblock preferences %}
</ul>
</section>
</div>
Expand Down

0 comments on commit 74011a1

Please sign in to comment.