add reseaupro link (quick hack)

This commit is contained in:
Thomas NOËL 2013-09-18 23:42:45 +02:00
parent 9e7a58dcd6
commit 8c97db1b9c
3 changed files with 16 additions and 0 deletions

View File

@ -178,6 +178,11 @@ div.app-has-picto a span {
left: 5px;
}
div.app-picto-reseaupro a {
background: transparent url(../img/reseaupro.png) center center no-repeat;
background-color: white;
}
div.app-picto-wcs a {
background: transparent url(../img/face-monkey-symbolic.png) center center no-repeat;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -42,6 +42,12 @@ class Homepage(TemplateView):
profile.user = self.request.user
reset_layout = True
# dirty hack... saml-men will fix that
try:
idp = 'entityID=' + profile.user.libertyfederation_set.all()[0].idp.liberty_provider.entity_id
except:
idp = ''
if reset_layout:
profile.set_layout({
'app001': ('welcome', {'row': 1, 'col': 1,
@ -67,6 +73,11 @@ class Homepage(TemplateView):
'picto': u'unpidf',
'background_color': '#d7562a',
'url': 'http://unpidf.univ-paris1.fr'}),
'app009': ('launcher', {'row': 3, 'col': 3,
'label': u'RéseauPro',
'picto': u'reseaupro',
'background_color': '#008ba5',
'url': 'https://reseaupro.univcloud.fr/Shibboleth.sso/Login?%s' % idp}),
})
profile.save()