X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fonelab%2Fonelab_home-view.html;h=6fd7e1d9e467cf956e19420e0c986f5d9d0eda8f;hb=550fb69fd118f544fb7eb7faa8345654af28a427;hp=812b36fc7c596357f70203f1a3ffc6461985d7a1;hpb=8cd242571082562afa089d7da255c8234055f685;p=unfold.git diff --git a/portal/templates/onelab/onelab_home-view.html b/portal/templates/onelab/onelab_home-view.html index 812b36fc..6fd7e1d9 100644 --- a/portal/templates/onelab/onelab_home-view.html +++ b/portal/templates/onelab/onelab_home-view.html @@ -1,7 +1,7 @@ -{% extends "layout-unfold1.html" %} +{% extends "base.html" %} -{% block unfold_main %} -
+{% block content %} +
{% else %} @@ -65,20 +65,17 @@ {% if person %} - {% if person.last_name %} -
{{person.first_name}} {{person.last_name}}
{% endif %} -
Email: {{person.email}}
+ {% else %} {% include 'onelab__widget-login-manager.html' %} {% endif %} - + -
-
+ @@ -92,6 +89,9 @@ $('div.home-panel').hide(); $('div#'+$(this).data('panel')).show(); }); + $('button#validaterequestbtn').click(function() { + window.location="/portal/validate/"; + }); $('button#ticketbtn').click(function() { window.location="/portal/contact/"; }); @@ -100,10 +100,10 @@ }); {% if person %} - $.getJSON("rest/user", function( data ) { + $.post("/rest/user/",{'filters':{'user_hrn':'$user_hrn'}}, function( data ) { var items = []; - $.each( data[0].slices, function( key, val ) { - items.push( "
  • " + val + "
  • " ); + $.each( data[0].slice, function( key, val ) { + items.push( "
  • " + val.slice_hrn + "
  • " ); }); $("div#home-slice-list").html($( "