some admin ux improvements

This commit is contained in:
radex 2020-05-11 20:26:59 +02:00 committed by Piotr Dobrowolski
parent 60601b270e
commit 7f12474e76
3 changed files with 5 additions and 2 deletions

View File

@ -81,6 +81,9 @@ class ItemAdmin(StaffModelAdmin):
return super(ItemAdmin, self).response_action(request, queryset) return super(ItemAdmin, self).response_action(request, queryset)
admin.site.site_title = 'Hackerspace Storage Admin'
admin.site.site_header = 'Hackerspace Storage Admin'
admin.site.register(Item, ItemAdmin) admin.site.register(Item, ItemAdmin)
admin.site.register(Category, StaffModelAdmin) admin.site.register(Category, StaffModelAdmin)

View File

@ -2,7 +2,7 @@
{% block content %} {% block content %}
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="/item/">Everything</a></li> <li><a href="/item/">All</a></li>
{% for ancestor in ancestors %} {% for ancestor in ancestors %}
<li><a href="{{ ancestor.get_absolute_url }}">{{ ancestor.name }}</a></li> <li><a href="{{ ancestor.get_absolute_url }}">{{ ancestor.name }}</a></li>
{% endfor %} {% endfor %}

View File

@ -26,7 +26,7 @@
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/item/">All things</a></li> <li><a href="/item/">All things</a></li>
<li><a href="/admin/">Add thing</a></li> <li><a href="/admin/storage/item/add/">Add thing</a></li>
<li><a href="https://wiki.hackerspace.pl/members:services:inventory">How to use</a></li> <li><a href="https://wiki.hackerspace.pl/members:services:inventory">How to use</a></li>
</ul> </ul>
<form class="navbar-form navbar-right" role="search" action="/search"> <form class="navbar-form navbar-right" role="search" action="/search">