management page improved
This commit is contained in:
parent
ca49c4132c
commit
1b6c172710
|
@ -4,6 +4,6 @@
|
|||
{% block logout-url %}{% url "logout" %}{% endblock %}
|
||||
|
||||
{% block more-user-links %}
|
||||
{{ block.super }}
|
||||
<a href="{% url "manage-users" organization.slug %}">{% trans 'User management' %}</a>
|
||||
{% endblock %}
|
||||
<a href="{% url "organization-home" organization.slug %}" class="icon-home-space">{% trans 'Homepage' %}</a>
|
||||
<a href="{% url "manage" organization.slug %}">{% trans 'Management' %}</a>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,2 +1,8 @@
|
|||
{% extends "uauth/base.html" %}
|
||||
{% extends "organization/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<ul class="apps">
|
||||
<li class="users"><a href="{% url 'manage-users' organization.slug %}">{% trans 'Users' %}</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -33,7 +33,7 @@ class OrganizationMixin(object):
|
|||
ctx['organization'] = Organization.objects.get(slug=self.kwargs['organization_slug'])
|
||||
return ctx
|
||||
|
||||
class ManageView(TemplateView):
|
||||
class ManageView(OrganizationMixin, TemplateView):
|
||||
template_name = 'organization/manage.html'
|
||||
|
||||
manage = ManageView.as_view()
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
|
@ -71,4 +71,7 @@ div.example {
|
|||
background: #eee;
|
||||
border: 1px solid #bbb;
|
||||
font-family: Monospace;
|
||||
}
|
||||
}
|
||||
|
||||
/* icons */
|
||||
li.users a {background-image: url(icons/icon-personnes.png);}
|
Reference in New Issue