Skip to content
Snippets Groups Projects
Commit 56c891d8 authored by phelokazi_dube's avatar phelokazi_dube
Browse files

SAR-259 Replaced the github.js in the _static directory with the gitlab.js

parent e2635241
No related branches found
No related tags found
No related merge requests found
jQuery(function(){
var github_v3_endpoint = "https://api.github.com/orgs/ska-telescope/repos";
var list = $("#list-of-projects > ul");
if( list.length ){
list.empty();
$.getJSON(github_v3_endpoint, function(data){
$.each(data, function(key, val){
//console.log(val);
if(val["description"])
description = val["description"];
else
description = "";
item = "<li><a href=\"" +
val["html_url"] +
"\">" +
val["name"] +
"</a> " +
description +
"</li>";
$(item).appendTo(list);
}); //end each
}); //end getJSON
}else{ //if list not found
//console.log("list not found")
}
});
jQuery(function(){
var ci_dashboard = "https://ska-telescope.gitlab.io/ska_ci_dashboard/";
var dashboard_table = $("#ci-dashboard > table");
if( dashboard_table.length ){
$.get(ci_dashboard, function(data){
dashboard_table.html($(data).find("#dataTable"));
});
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment