mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 10:08:36 +02:00
feat: add sidebar
This commit is contained in:
7
app/templates/cotton/components/sidebar_menu_header.html
Normal file
7
app/templates/cotton/components/sidebar_menu_header.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<li>
|
||||
<div class="d-flex align-items-center" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
|
||||
<span
|
||||
class="text-muted small fw-bold text-uppercase tw:lg:hidden tw:lg:group-hover:inline">{{ title }}</span>
|
||||
<hr class="flex-grow-1"/>
|
||||
</div>
|
||||
</li>
|
||||
8
app/templates/cotton/components/sidebar_menu_item.html
Normal file
8
app/templates/cotton/components/sidebar_menu_item.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% load active_link %}
|
||||
<li>
|
||||
<a href="{% url url %}"
|
||||
class="tw:text-wrap tw:lg:text-nowrap tw:lg:text-sm d-flex align-items-center text-decoration-none p-2 rounded-3 sidebar-item {% active_link views=active css_class="sidebar-active" %}">
|
||||
<i class="{{ icon }} fa-fw"></i>
|
||||
<span class="ms-3 fw-medium tw:lg:invisible tw:lg:group-hover:visible tw:lg:group-hover:truncate tw:lg:group-focus:truncate tw:lg:group-hover:text-ellipsis tw:lg:group-focus:text-ellipsis">{{ title }}</span>
|
||||
</a>
|
||||
</li>
|
||||
Reference in New Issue
Block a user