diff --git a/bid_main/static/bid_main/styles/main.sass b/bid_main/static/bid_main/styles/main.sass index 2659054..14c200b 100644 --- a/bid_main/static/bid_main/styles/main.sass +++ b/bid_main/static/bid_main/styles/main.sass @@ -375,34 +375,6 @@ form position: relative top: calc(var(--border-width) * -1) -// TODO: Move to web-assets. This is copied over from Extensions. -.nav-pills - @extend .dropdown-menu - - box-shadow: none - display: block - position: relative - -.nav-pills-item - @extend .dropdown-item - - +margin(1, bottom) - white-space: normal - - &.active - background-color: var(--color-accent-bg) - +fw-normal - - &:last-child - +margin(0, bottom) - -.nav-pills-divider - @extend .dropdown-divider - - +margin(0, top) - +margin(1, bottom) - - /* Larger icons */ i.icon.icon-lg svg diff --git a/bid_main/templates/bid_main/components/sidebar_nav_item.html b/bid_main/templates/bid_main/components/sidebar_nav_item.html index 6856950..87e9f10 100644 --- a/bid_main/templates/bid_main/components/sidebar_nav_item.html +++ b/bid_main/templates/bid_main/components/sidebar_nav_item.html @@ -1,4 +1,7 @@ - {% if icon %}{% endif %} + {% if icon %} + + {% endif %} + {{ title }} diff --git a/templates/layout.html b/templates/layout.html index c11b780..4074a23 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -42,31 +42,33 @@
{% block sidebar %} -
- -
+ {% endif %} + + {% include "bid_main/components/sidebar_nav_item.html" with url="bid_main:password_change" title="Password" url_match="/change" icon="i-asterisk" %} + + {% include "bid_main/components/sidebar_nav_item.html" with url="bid_main:delete_user" title="Delete Account" url_match="/delete-my-account" icon="i-trash" %} + +
{% endblock %}