X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=portal%2Ftemplates%2Finstitution.html;h=575a1f0f73d86ddafaa0d201d8cfe7dea7eb6853;hb=2f89f2e81c44a63d6d90746a1f3c126603280b66;hp=812b2e54bb2d7fe6a5b1c8f0fb9417e78334a573;hpb=de9cba4dc7bb98a579cf5df1f9900e9328544871;p=myslice.git diff --git a/portal/templates/institution.html b/portal/templates/institution.html index 812b2e54..575a1f0f 100644 --- a/portal/templates/institution.html +++ b/portal/templates/institution.html @@ -1,15 +1,16 @@ -{% extends "layout-unfold1.html" %} +{% extends "layout.html" %} -{% block unfold_main %} -
+{% block content %} +
+

Affiliation to an Institution

+
+
-

Affiliation to an Institution

-
Loading Authority
@@ -55,6 +55,7 @@ expiration +
@@ -70,6 +71,18 @@ $('div.home-panel').hide(); $('div#'+$(this).data('panel')).show(); }); + var url = window.location; + if(url.hash) { + // Fragment exists + tab = url.href.split("#")[1]; + tab_exists = $('div#'+tab).length; + if (tab_exists) { + $('ul.nav-tabs li').removeClass('active'); + $('li#'+tab+'-tab').addClass('active'); + $('div.home-panel').hide(); + $('div#'+tab).show(); + } + } $('button#createslice').click(function() { window.location="/portal/slice_request/"; }) @@ -86,7 +99,7 @@ /* 'city','enabled','legal','longitude','onelab_membership','address','parent_authority','slice','user','country', 'tech','abbreviated_name','url','postcode','description','scientific','authority_hrn','latitude','name' */ $.each( data, function( key, val ) { - authority_row = "
"; + authority_row = "
"; authority_row += "
"; authority_row += "authority: "+val.authority_hrn+"
"; authority_row += "
"; @@ -161,7 +174,7 @@ slice_row = ""; slice_row += ""; - slice_row += "" + val.slice_hrn + ""; + slice_row += "" + val.slice_hrn + ""; slice_row += ""+user_length+""; slice_row += ""+slice_url+""; slice_row += ""+nodes_length+""; @@ -204,4 +217,4 @@ {% endif %} }); -{% endblock unfold_main %} +{% endblock %}