Projet

Général

Profil

« Précédent | Suivant » 

Révision 1b6c1727

Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 9 ans

management page improved

Voir les différences:

uauth/organization/templates/organization/base.html
4 4
{% block logout-url %}{% url "logout" %}{% endblock %}
5 5

  
6 6
{% block more-user-links %}
7
  {{ block.super }}
8
  <a href="{% url "manage-users" organization.slug %}">{% trans 'User management' %}</a>
9
  {% endblock %}
7
  <a href="{% url "organization-home" organization.slug %}" class="icon-home-space">{% trans 'Homepage' %}</a>
8
  <a href="{% url "manage" organization.slug %}">{% trans 'Management' %}</a>
9
{% endblock %}
uauth/organization/templates/organization/manage.html
1
{% extends "uauth/base.html" %}
1
{% extends "organization/base.html" %}
2 2
{% load i18n %}
3

  
4
{% block content %}
5
<ul class="apps">
6
  <li class="users"><a href="{% url 'manage-users' organization.slug %}">{% trans 'Users' %}</a></li>
7
</ul>
8
{% endblock %}
uauth/organization/views.py
33 33
        ctx['organization'] = Organization.objects.get(slug=self.kwargs['organization_slug'])
34 34
        return ctx
35 35

  
36
class ManageView(TemplateView):
36
class ManageView(OrganizationMixin, TemplateView):
37 37
    template_name = 'organization/manage.html'
38 38

  
39 39
manage = ManageView.as_view()
uauth/static/css/style.css
71 71
    background: #eee;
72 72
    border: 1px solid #bbb;
73 73
    font-family: Monospace;
74
}
74
}
75

  
76
/* icons */
77
li.users a {background-image: url(icons/icon-personnes.png);}

Formats disponibles : Unified diff