diff --git a/account/templates/home.html b/account/templates/home.html index 1532f92..4ca70f8 100644 --- a/account/templates/home.html +++ b/account/templates/home.html @@ -7,8 +7,8 @@

{% trans "Welcome to the c-base member interface" %}

You are one of currently {{ number_of_members }} c-base members.

-

{% blocktrans %}Here you can change - some parameters of your c-base member account.{% endblocktrans %}

+

{% blocktrans %}Here you can change some parameters of your + c-base member account.{% endblocktrans %}

{% trans "Basic information about your account" %}

@@ -18,9 +18,9 @@ {{ member.uid }}
  • {% trans "Numeric user ID:" %} {{ member.uidNumber }}
    - {% blocktrans %}The numeric user ID can be used to login with - the vending machines and network connected combination - locks.{% endblocktrans %}
  • + {% blocktrans %}The numeric user ID can + be used to login with the vending machines and network + connected combination locks.{% endblocktrans %}
  • {% trans "Your c-base e-mail address:" %} {{ member.mail }} diff --git a/account/views.py b/account/views.py index 2f02fc6..5b4d4a6 100644 --- a/account/views.py +++ b/account/views.py @@ -2,10 +2,8 @@ # -*- coding: utf-8 -*- import os -import base64 import hashlib - from django.conf import settings from django.http import HttpResponseRedirect from django.shortcuts import render_to_response @@ -73,8 +71,9 @@ def auth_login(request): def home(request): member = retrieve_member(request) number_of_members = member.get_number_of_members() - context = {'member': member.to_dict(), 'groups': request.user.groups.all(), - 'number_of_members': number_of_members} + context = {'member': member.to_dict(), + 'groups': sorted(list(request.user.groups.all())), + 'number_of_members': number_of_members} return render(request, 'home.html', context) @login_required