X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=8bc204ac736c8d13ecf2d58f542db5446cdda9eb;hb=88d1cf35c316c6d598f1c7af083b669921030e32;hp=9c6eb1b2cbd11adf1c27be54a308342e6da8c981;hpb=111d0fcb9681bf94ff184fe43bf636b6d672cbff;p=myslice.git diff --git a/portal/templates/base.html b/portal/templates/base.html index 9c6eb1b2..8bc204ac 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -1,6 +1,7 @@ {% load portal_filters %} {# This is required by insert_above #}{% insert_handler %} - + + {{theme}} portal - {{ section }} @@ -20,9 +21,14 @@ - + + + + + + {{ header_prelude }} {% block head %} {% endblock head %} @@ -48,6 +54,7 @@ {% insert_str prelude "css/slider.css" %} {% insert_str prelude "css/topmenu.css" %} {% insert_str prelude "js/logout.js" %} + @@ -60,7 +67,7 @@ This list of slices should go into SESSION ! $(document).ready(function() { {% if username %} myslice.login(function(){ - user = myslice.user(); + user = myslice.get_user(); var slices = []; if($.isEmptyObject(user)){ @@ -70,37 +77,75 @@ $(document).ready(function() { slices.push("no slice"); }else{ slices = user.slices; - drawSlices(slices); } - {% if theme == "fed4fire" %} - p = myslice.projects(); + p = myslice.get_projects(); if(p != null){ - drawProjects(p); + //drawProjects(p); + drawProjectsTree(p,slices); } - {% endif %} }); function drawSlices(slices){ var items = []; - + console.log(slices); $.each( slices, function(i, val) { - items.push( "
  • " + val + "
  • " ); + items.push( "
  • " + val + "
  • " ); }); $("div#home-slice-list").html($( "