Skip to content

Commit 8f90526

Browse files
committed
Updated org preview to include the org's image.
1 parent a1035f4 commit 8f90526

3 files changed

Lines changed: 7 additions & 12 deletions

File tree

public/js/createOrgInfo.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
function createOrgInfo(orgName, container) {
22
queryAPIByOrg("", orgName, (orgData) => {
33
console.log("called");
4-
var html =
5-
"<div class=\"card\" style=\"w-100;\"> \
4+
var html = "<div class=\"card\" style=\"w-100;\"><div class='row m-0'><div class='col-2 col-centered p-auto'>"+
5+
"<img src='" + orgData.avatar_url + "' width='100%'/>" +
6+
"</div><div class='col-10'>\
67
<div class=\"card-body\"> \
7-
<div class=\"card-header\"><h3 class=\"card-title\">"+orgData.name+"</h3></div> " +
8+
<center><b><h3 class=\"card-title\">"+orgData.name+"</h3><b><center> " +
89
(orgData.description != null ? "<div class=\"card-text\"><p>"+orgData.description+"</p></div>" : "") + " \
910
</div> \
1011
<ul class=\"list-group list-group-flush\">"+
1112
(orgData.location !=null ? "<li class=\"list-group-item\">Location: "+orgData.location+"</li>" : "") + " \
1213
</ul> \
13-
</div>"
14+
</div></div></div>";
1415

1516
$("#" + container).html(html);
1617

17-
setTimeout(function() {
18-
$('#dataTable').DataTable();
19-
}, 1500);
20-
2118
}, function(error) {
2219
alert("Organization Does Not Exist");
2320
window.location.href = "./GraphGenerator.html";

public/js/createOrgRepoGraph.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,6 @@ function updateProgress()
259259
$("#graphLoading").html("<div class=\"progress\">\n" +
260260
" <div class=\"progress-bar progress-bar-striped progress-bar-animated\" role=\"progressbar\" style=\"width: " + percent + "%\" aria-valuenow=\"" + percent + "\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n" +
261261
"</div>");
262-
263-
console.log();
264262
}
265263

266264
/**

public/js/createOrgTable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ function createOrgTable(orgName, tableContainer)
5353

5454
$("#" + tableContainer).html(html);
5555

56-
$(document).ready(function() {
56+
setTimeout(function() {
5757
$('#dataTable').DataTable();
58-
} );
58+
}, 1500);
5959
}).catch(function(error)
6060
{
6161
//console.log("Unable to create table");

0 commit comments

Comments
 (0)