X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=82fa444f6efcb2b2517e920e8fe32a873c804e74;hb=335a5be14ae49e9f9ed35710be9e516f9ea8b789;hp=decc1b38f05cf803a222e0f038d0b23311e6b96d;hpb=ac575fb40a8a128cdac22bdc0b868012011c5e66;p=myslice.git diff --git a/portal/templates/base.html b/portal/templates/base.html index decc1b38..82fa444f 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -3,7 +3,16 @@ {{theme}} portal - {{ section }} - + + +{% if theme == "fed4fire" %} + +{% elif theme == "smartfire" %} + +{% else %} + +{% endif %} + {# This is where insert_str will end up #}{% media_container prelude %} {% include 'messages-transient-header.html' %} @@ -14,10 +23,16 @@ + + + + + {{ header_prelude }} {% block head %} {% endblock head %} {# let's add these ones no matter what #} +{#NOTE: DO NOT ADD JQUERY-UI JS & CSS HERE. IT BREAKS THE RESOURCE BROWSING PAGE -- DETAILS WITH JORDAN AUGE#} {% insert_str prelude "js/jquery.min.js" %} {% insert_str prelude "js/angular/angular.min.js" %} {% insert_str prelude "js/jquery.html5storage.min.js" %} @@ -63,10 +78,10 @@ $(document).ready(function() { drawSlices(slices); } {% if theme == "fed4fire" %} - myslice.loadProjects(function(){ - p = myslice.projects(); + p = myslice.projects(); + if(p != null){ drawProjects(p); - }); + } {% endif %} }); @@ -85,7 +100,7 @@ $(document).ready(function() { var items = []; $.each( projects, function(i, val) { - items.push( "
  • " + val.authority_hrn + "
  • " ); + items.push( "
  • " + val + "
  • " ); }); $("div#home-project-list").html($( "