added a link to each platform on Dashboard
authorLoic Baron <loic.baron@lip6.fr>
Fri, 23 Aug 2013 13:56:28 +0000 (15:56 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Fri, 23 Aug 2013 13:56:28 +0000 (15:56 +0200)
plugins/lists/static/js/simplelist.js
portal/views.py

index 9cd5129..aed6217 100644 (file)
@@ -96,7 +96,7 @@
         if (key == 'slice.slice_hrn') {
             return "<i class='icon-play-circle'></i><a href='/slice/" + value + "'>" + value + "</a>";
         } else if (key == 'network_hrn') {
-            return "<i class='icon-play-circle'></i>" + value ;
+            return "<i class='icon-play-circle'></i><a href='/portal/platform/" + value + "'>" + value + "</a>";
         } else {
             return value;
         }
index ca248ab..be1b77c 100644 (file)
@@ -583,7 +583,7 @@ class PlatformView(TemplateView):
         # more general variables expected in the template
         context['title'] = 'Platforms connected to MySlice'
         # the menu items on the top
-        context['topmenu_items'] = topmenu_items('Platforms', self.request)
+        context['topmenu_items'] = topmenu_items('Platforms', self.request)
         # so we can sho who is logged
         context['username'] = the_user(self.request)
 
@@ -1145,7 +1145,7 @@ class ValidatePendingView(TemplateView):
             for user in pending_users:
                 auth_hrn = user.authority_hrn
                 if not auth_hrn:
-                    auth_hrn = "ple.upmc" # XXX HARDCODED
+                    auth_hrn = "fed4fire.upmc" # XXX HARDCODED
 
                 request = {}
                 request['type'] = 'user'