Revision 49790d9d snf-astakos-app/astakos/im/api.py
b/snf-astakos-app/astakos/im/api.py | ||
---|---|---|
179 | 179 |
|
180 | 180 |
@api_method() |
181 | 181 |
def get_menu(request, with_extra_links=False, with_signout=True): |
182 |
exclude = [] |
|
183 | 182 |
index_url = reverse('index') |
184 | 183 |
absolute = lambda (url): request.build_absolute_uri(url) |
185 | 184 |
l = [{ 'url': absolute(index_url), 'name': "Sign in"}] |
... | ... | |
199 | 198 |
if user.has_usable_password(): |
200 | 199 |
l.append({ 'url': absolute(reverse('password_change')), |
201 | 200 |
'name': "Change password" }) |
201 |
l.append({'url':absolute(reverse('email_change')), |
|
202 |
'name': "Change email"}) |
|
202 | 203 |
if INVITATIONS_ENABLED: |
203 | 204 |
l.append({ 'url': absolute(reverse('astakos.im.views.invite')), |
204 | 205 |
'name': "Invitations" }) |
Also available in: Unified diff