X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=portal%2Ftemplates%2Fservicedirectory.html;h=78502cf62eb34be771f42e3b4962de4f28d1923a;hb=a05607a425aa69ece877fa3b795bd200705b9af7;hp=85eee7503b5cdb29937657fe49d384b47bd3873e;hpb=5ffff912caffe3c68f1cb76031e21a524c3f51e5;p=unfold.git diff --git a/portal/templates/servicedirectory.html b/portal/templates/servicedirectory.html index 85eee750..78502cf6 100644 --- a/portal/templates/servicedirectory.html +++ b/portal/templates/servicedirectory.html @@ -82,24 +82,11 @@ loadedTabs = []; async: "false", url: "{{ servdirurl }}appservices/", success: function(data, status, jqXHR){ - // console.log(data); - // $.each(data, function(i, item){ - // console.log(item); - // var tr = $('
').text(item.name), + $('
').append(
+ $(''), " " + item.name),
$(' ').text(item.briefDescription),
$(' ').text("Provider: " + item.provider),
$(' ').append('Endpoint: ' + item.endPoint + ""),
$(' ').text(item.fullDescription).hide(),
$(' ').text("Protocol: " + item.protocol).hide(),
$(' ')
- .append('API documentation: ' + item.APILink + "").hide(),
- $(' ').text(item.APIBasic).hide()
+ .append('API documentation: ' + item.APILink + "").hide()
)
);
- $("#appservices-tab").append(row);
+ $('#appservices-tab').append(row);
$('p#name-' + item.name.replace(/ /g,'')).click(createToggle(item.name.replace(/ /g,'')));
});
@@ -173,88 +162,6 @@ loadedTabs = [];
console.log("ERROR: " + status);
}
});
-
- // $.post("/rest/authority/",{'filters':{'authority_hrn':'{{user_details.parent_authority}}'}}, function( data ) {
- // var authority_data = [];
- // var onelab_data = [];
- // /* '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: "+val.authority_hrn+"
";
- // authority_data.push(authority_row);
- // });
- // $("div#authority-data").html(authority_data.join( "" ));
- // $("div#onelab-data").html(onelab_data.join( "" ));
- // $("div#authority-tab-loaded").css("display","block");
- // $("div#authority-tab-loading").css("display","none");
- // });
-
- // $.post("/rest/slice/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) {
- // var list_slices = [];
- // var table_slices = [];
- // /* "slice_hrn", "slice_description", "slice_type", "parent_authority", "created", "nodes", "slice_url", "slice_last_updated", "users", "slice_urn", "slice_expires" */
- // $.each( data, function( key, val ) {
- // list_slices.push( "";
- // slice_row += " ";
- // table_slices.push(slice_row);
-
- // });
-
- // /* $("div#slice-list").html($( "";
- // slice_row += " " + val.slice_hrn + " ";
- // slice_row += ""+users_length+" ";
- // slice_row += ""+slice_url+" ";
- // //slice_row += ""+nodes_length+" ";
- // slice_row += ""+val.slice_expires+" ";
- // slice_row += "", { html: list_slices.join( "" ) })); */
- // $("table#slice-tab tr:last").after(table_slices.join( "" ));
- // $("div#slice-tab-loaded").css("display","block");
- // $("div#slice-tab-loading").css("display","none");
- // });
-
- // $.post("/rest/user/",{'filters':{'parent_authority':'{{user_details.parent_authority}}'}}, function( data ) {
- // var list_users = [];
- // var table_users = [];
- // /* Available fields
- // user_gid, user_enabled, slices, pi_authorities, keys, parent_authority, user_first_name,
- // user_urn, user_last_name, user_phone, user_hrn, user_email, user_type
- // */
- // $.each( data, function( key, val ) {
- // list_users.push( "
";
- // user_row += " ";
- // table_users.push(user_row);
- // });
- // $("table#user-tab tr:last").after(table_users.join( "" ));
- // $("div#user-tab-loaded").css("display","block");
- // $("div#user-tab-loading").css("display","none");
- // });
{% endif %}
";
- // user_row += " "+val.user_email+" ";
- // user_row += ""+val.user_hrn+" ";
- // user_row += ""+val.user_first_name+" ";
- // user_row += ""+val.user_last_name+" ";
- // user_row += ""+val.user_enabled+" ";
- // user_row += "