Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c989aac5
Commit
c989aac5
authored
Jan 04, 2013
by
Sofia Papagiannaki
Browse files
Fix astakos profile page links
parent
0ab70583
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/context_processors.py
View file @
c989aac5
...
@@ -35,7 +35,7 @@ from astakos.im.settings import (
...
@@ -35,7 +35,7 @@ from astakos.im.settings import (
IM_MODULES
,
INVITATIONS_ENABLED
,
IM_STATIC_URL
,
IM_MODULES
,
INVITATIONS_ENABLED
,
IM_STATIC_URL
,
LOGIN_MESSAGES
,
SIGNUP_MESSAGES
,
PROFILE_MESSAGES
,
LOGIN_MESSAGES
,
SIGNUP_MESSAGES
,
PROFILE_MESSAGES
,
GLOBAL_MESSAGES
,
PROFILE_EXTRA_LINKS
)
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.util
import
get_query
from
astakos.im.auth_providers
import
PROVIDERS
as
AUTH_PROVIDERS
from
astakos.im.auth_providers
import
PROVIDERS
as
AUTH_PROVIDERS
...
@@ -107,3 +107,11 @@ def menu(request):
...
@@ -107,3 +107,11 @@ def menu(request):
return
{}
return
{}
else
:
else
:
return
{
'menu'
:
menu_items
}
return
{
'menu'
:
menu_items
}
def
services
(
request
):
try
:
resp
=
get_services
(
request
)
except
Exception
,
e
:
return
{}
else
:
return
{
'services'
:
json
.
loads
(
resp
.
content
)}
snf-astakos-app/astakos/im/synnefo_settings.py
View file @
c989aac5
...
@@ -57,6 +57,7 @@ context_processors = [
...
@@ -57,6 +57,7 @@ context_processors = [
'astakos.im.context_processors.code'
,
'astakos.im.context_processors.code'
,
'astakos.im.context_processors.invitations'
,
'astakos.im.context_processors.invitations'
,
'astakos.im.context_processors.menu'
,
'astakos.im.context_processors.menu'
,
'astakos.im.context_processors.services'
,
'astakos.im.context_processors.custom_messages'
,
'astakos.im.context_processors.custom_messages'
,
'astakos.im.context_processors.last_login_method'
,
'astakos.im.context_processors.last_login_method'
,
'synnefo.lib.context_processors.cloudbar'
'synnefo.lib.context_processors.cloudbar'
...
...
snf-astakos-app/astakos/im/templates/im/profile.html
View file @
c989aac5
...
@@ -22,9 +22,9 @@
...
@@ -22,9 +22,9 @@
<div
class=
"full-dotted right-align"
>
<div
class=
"full-dotted right-align"
>
<ul
class=
"options"
>
<ul
class=
"options"
>
<li><a
href=
"https://cyclades.okeanos.grnet.gr/ui/"
class=
"blue"
>
Take me to cyclades >
</a></li>
{% for s in services %}
<li><a
href=
"
https://pithos.okeanos.grnet.gr/ui/
"
class=
"blue"
>
Take me to
pithos+
>
</a></li>
<li><a
href=
"
{{s.url}}
"
class=
"blue"
>
Take me to
{{s.name}}
>
</a></li>
<li><a
href=
"https://okeanos.grnet.gr/home/"
class=
"blue"
>
~okeanos homepage >
</a></li>
{% endfor %}
</ul>
</ul>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment