X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=347fe99481ae924d47230fb1d0371071b6520278;hb=ca18b72eaf2f8f06a41136cb95fdc4f04cf67c0b;hp=27c17ea735b96144ffda12f0c8876787b93bf720;hpb=08cf8f5ad12df97137284f2d474582bc5851cb45;p=myslice.git diff --git a/portal/templates/base.html b/portal/templates/base.html index 27c17ea7..347fe994 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -54,6 +54,7 @@ {% insert_str prelude "css/slider.css" %} {% insert_str prelude "css/topmenu.css" %} {% insert_str prelude "js/logout.js" %} + @@ -66,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)){ @@ -76,33 +77,29 @@ $(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); 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($( "