Commit 9ff6d921 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: Always display projects in menu

Since now we cannot do without projects, we remove the option to hide
projects from Astakos UI.
parent acb01f57
......@@ -67,6 +67,9 @@ Astakos
* The quota API is extended to make project quota available.
* Removed setting `ASTAKOS_PROJECTS_VISIBLE'; we now always display
projects in Astakos menu.
* Projects can be set `private', making it accessible only to its owner and
members.
......
......@@ -220,9 +220,6 @@ default_success_url = join_urls('/', BASE_PATH, VIEWS_PREFIX, "landing")
LOGIN_SUCCESS_URL = getattr(settings, 'ASTAKOS_LOGIN_SUCCESS_URL',
default_success_url)
# Whether or not to display projects in astakos menu
PROJECTS_VISIBLE = getattr(settings, 'ASTAKOS_PROJECTS_VISIBLE', False)
# A way to extend the components presentation metadata
COMPONENTS_META = getattr(settings, 'ASTAKOS_COMPONENTS_META', {})
......
# Copyright 2011, 2012, 2013 GRNET S.A. All rights reserved.
# Copyright 2011-2014 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
......@@ -940,12 +940,11 @@ def get_menu(request, with_extra_links=False, with_signout=True):
url=request.build_absolute_uri(reverse('resource_usage')),
name="Usage"))
if settings.PROJECTS_VISIBLE:
append(
item(
url=request.build_absolute_uri(
reverse('project_list')),
name="Projects"))
append(
item(
url=request.build_absolute_uri(
reverse('project_list')),
name="Projects"))
append(item(url=request.build_absolute_uri(reverse('feedback')),
name="Contact"))
......
......@@ -124,9 +124,6 @@
#ASTAKOS_LINKEDIN_TOKEN = ''
#ASTAKOS_LINKEDIN_SECRET = ''
# Whether or not to display projects in astakos menu
# ASTAKOS_PROJECTS_VISIBLE = False
# A way to extend the components presentation metadata
# ASTAKOS_COMPONENTS_META = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment