Revision ed7e736e
b/Changelog | ||
---|---|---|
67 | 67 |
|
68 | 68 |
* The quota API is extended to make project quota available. |
69 | 69 |
|
70 |
* Removed setting `ASTAKOS_PROJECTS_VISIBLE'; we now always display |
|
71 |
projects in Astakos menu. |
|
72 |
|
|
70 | 73 |
* Projects can be set `private', making it accessible only to its owner and |
71 | 74 |
members. |
72 | 75 |
|
b/snf-astakos-app/astakos/im/settings.py | ||
---|---|---|
220 | 220 |
LOGIN_SUCCESS_URL = getattr(settings, 'ASTAKOS_LOGIN_SUCCESS_URL', |
221 | 221 |
default_success_url) |
222 | 222 |
|
223 |
# Whether or not to display projects in astakos menu |
|
224 |
PROJECTS_VISIBLE = getattr(settings, 'ASTAKOS_PROJECTS_VISIBLE', False) |
|
225 |
|
|
226 | 223 |
# A way to extend the components presentation metadata |
227 | 224 |
COMPONENTS_META = getattr(settings, 'ASTAKOS_COMPONENTS_META', {}) |
228 | 225 |
|
b/snf-astakos-app/astakos/im/views/im.py | ||
---|---|---|
1 |
# Copyright 2011, 2012, 2013 GRNET S.A. All rights reserved.
|
|
1 |
# Copyright 2011-2014 GRNET S.A. All rights reserved.
|
|
2 | 2 |
# |
3 | 3 |
# Redistribution and use in source and binary forms, with or |
4 | 4 |
# without modification, are permitted provided that the following |
... | ... | |
940 | 940 |
url=request.build_absolute_uri(reverse('resource_usage')), |
941 | 941 |
name="Usage")) |
942 | 942 |
|
943 |
if settings.PROJECTS_VISIBLE: |
|
944 |
append( |
|
945 |
item( |
|
946 |
url=request.build_absolute_uri( |
|
947 |
reverse('project_list')), |
|
948 |
name="Projects")) |
|
943 |
append( |
|
944 |
item( |
|
945 |
url=request.build_absolute_uri( |
|
946 |
reverse('project_list')), |
|
947 |
name="Projects")) |
|
949 | 948 |
|
950 | 949 |
append(item(url=request.build_absolute_uri(reverse('feedback')), |
951 | 950 |
name="Contact")) |
b/snf-astakos-app/conf/20-snf-astakos-app-settings.conf | ||
---|---|---|
124 | 124 |
#ASTAKOS_LINKEDIN_TOKEN = '' |
125 | 125 |
#ASTAKOS_LINKEDIN_SECRET = '' |
126 | 126 |
|
127 |
# Whether or not to display projects in astakos menu |
|
128 |
# ASTAKOS_PROJECTS_VISIBLE = False |
|
129 |
|
|
130 | 127 |
# A way to extend the components presentation metadata |
131 | 128 |
# ASTAKOS_COMPONENTS_META = {} |
132 | 129 |
|
Also available in: Unified diff