diff --git a/d2warehouse/app/main.py b/d2warehouse/app/main.py index f9739e8..e90584f 100644 --- a/d2warehouse/app/main.py +++ b/d2warehouse/app/main.py @@ -271,6 +271,7 @@ def list_storage_category(stash_name: str, category: str): "list_storage.html", stash_name=stash_name, storage_items=items, + category=category, storage_count=lambda x: storage_count(x, stash_name), ) diff --git a/d2warehouse/app/static/style.css b/d2warehouse/app/static/style.css index 1f6e000..3a4c3e9 100644 --- a/d2warehouse/app/static/style.css +++ b/d2warehouse/app/static/style.css @@ -5,6 +5,25 @@ body { color: rgb(240, 240, 240); } +nav ul { + list-style: none; + margin: 0; + padding: 0; + display: flex; + background-color: #444; +} + +nav a { + display: block; + padding: 1rem 1.5rem; + text-decoration: none; + color: rgb(240, 240, 240); +} + +nav a:hover { + background-color: #333; +} + .stash-tab { display: grid; grid-template-columns: repeat(5, 1fr); diff --git a/d2warehouse/app/templates/currency.html b/d2warehouse/app/templates/currency.html index fe9245e..44bc686 100644 --- a/d2warehouse/app/templates/currency.html +++ b/d2warehouse/app/templates/currency.html @@ -2,10 +2,19 @@ - Shared Stash + Currency + {% include "menu.html" %} +
diff --git a/d2warehouse/app/templates/list_stash.html b/d2warehouse/app/templates/list_stash.html index 0acee43..14475f5 100644 --- a/d2warehouse/app/templates/list_stash.html +++ b/d2warehouse/app/templates/list_stash.html @@ -7,6 +7,7 @@ + {% include "menu.html" %} {% for tab in stash.tabs %} {% set tabloop = loop %} diff --git a/d2warehouse/app/templates/list_storage.html b/d2warehouse/app/templates/list_storage.html index d959d42..2597b24 100644 --- a/d2warehouse/app/templates/list_storage.html +++ b/d2warehouse/app/templates/list_storage.html @@ -2,10 +2,20 @@ - Storage + Storage - {{category or 'all'}} + {% include "menu.html" %} +
diff --git a/d2warehouse/app/templates/menu.html b/d2warehouse/app/templates/menu.html new file mode 100644 index 0000000..40d6956 --- /dev/null +++ b/d2warehouse/app/templates/menu.html @@ -0,0 +1,6 @@ +