Commit c989aac5 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix astakos profile page links

parent 0ab70583
......@@ -35,7 +35,7 @@ from astakos.im.settings import (
IM_MODULES, INVITATIONS_ENABLED, IM_STATIC_URL,
LOGIN_MESSAGES, SIGNUP_MESSAGES, PROFILE_MESSAGES,
GLOBAL_MESSAGES, PROFILE_EXTRA_LINKS)
from astakos.im.api import get_menu
from astakos.im.api import get_menu, get_services
from astakos.im.util import get_query
from astakos.im.auth_providers import PROVIDERS as AUTH_PROVIDERS
......@@ -107,3 +107,11 @@ def menu(request):
return {}
else:
return {'menu': menu_items}
def services(request):
try:
resp = get_services(request)
except Exception, e:
return {}
else:
return {'services': json.loads(resp.content)}
......@@ -57,6 +57,7 @@ context_processors = [
'astakos.im.context_processors.code',
'astakos.im.context_processors.invitations',
'astakos.im.context_processors.menu',
'astakos.im.context_processors.services',
'astakos.im.context_processors.custom_messages',
'astakos.im.context_processors.last_login_method',
'synnefo.lib.context_processors.cloudbar'
......
......@@ -22,9 +22,9 @@
<div class="full-dotted right-align">
<ul class="options">
<li><a href="https://cyclades.okeanos.grnet.gr/ui/" class="blue">Take me to cyclades ></a></li>
<li><a href="https://pithos.okeanos.grnet.gr/ui/" class="blue">Take me to pithos+ ></a></li>
<li><a href="https://okeanos.grnet.gr/home/" class="blue">~okeanos homepage ></a></li>
{% for s in services %}
<li><a href="{{s.url}}" class="blue">Take me to {{s.name}}></a></li>
{% endfor %}
</ul>
</div>
......
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