diff --git a/univcloud/static/css/style.css b/univcloud/static/css/style.css index 24423e8..67fac1a 100644 --- a/univcloud/static/css/style.css +++ b/univcloud/static/css/style.css @@ -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; } diff --git a/univcloud/static/img/reseaupro.png b/univcloud/static/img/reseaupro.png new file mode 100644 index 0000000..eac4d5c Binary files /dev/null and b/univcloud/static/img/reseaupro.png differ diff --git a/univcloud/views.py b/univcloud/views.py index 9c87903..34ddb06 100644 --- a/univcloud/views.py +++ b/univcloud/views.py @@ -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()