management page improved

This commit is contained in:
Serghei Mihai 2015-05-10 16:16:23 +02:00
parent ca49c4132c
commit 1b6c172710
6 changed files with 15 additions and 6 deletions

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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

View File

@ -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);}