Skip to content

Commit

Permalink
Meir omstrukturering
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed Oct 24, 2023
1 parent bc7e64e commit 4915441
Showing 1 changed file with 37 additions and 26 deletions.
63 changes: 37 additions & 26 deletions assets/js/langtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -8109,9 +8109,22 @@ function addTR(repo) {
let row_lang = document.createElement('td');
row_lang.appendChild(addr(reponame2langname(repo.name), repo.name + '/'));

row.appendChild(row_lang);
row.appendChild(addRepo(repo));
row.appendChild(addRLicense(repo));
row.appendChild(addIssues(repo));
row.appendChild(addRDoc(repo));
row.appendChild(addCI(repo));

return row;
}

function addRepo(repo) {
let row_repo = document.createElement('td');
row_repo.appendChild(addr(repo.name, repo.html_url));

return row_repo;
}
function addRLicense(repo) {
let row_license = document.createElement('td');
const a_lic = document.createElement('a');
a_lic.setAttribute('href', repo.html_url + '/blob/main/LICENSE');
Expand All @@ -8123,7 +8136,9 @@ function addTR(repo) {
lic_image.setAttribute('alt', 'GitHub');
a_lic.appendChild(lic_image);
row_license.appendChild(a_lic);

return row_license;
}
function addIssues(repo) {
let row_issues = document.createElement('td');
const a_issue = document.createElement('a');
a_issue.setAttribute('href', repo.html_url + '/issues');
Expand All @@ -8135,7 +8150,25 @@ function addTR(repo) {
issue_image.setAttribute('alt', 'GitHub Issues');
a_issue.appendChild(issue_image);
row_issues.appendChild(a_issue);

return row_issues;
}
function addRDoc(repo) {
let row_doc = document.createElement('td');
const a_CI_doc = document.createElement('a');
a_CI_doc.setAttribute('href', repo.html_url + '/actions');
const CI_doc_image = document.createElement('img');
CI_doc_image.setAttribute(
'src',
'https://github.com/giellalt/' +
repo.name +
'/workflows/Docs/badge.svg'
);
CI_doc_image.setAttribute('alt', 'Doc Build Status');
a_CI_doc.appendChild(CI_doc_image);
row_doc.appendChild(a_CI_doc);
return row_doc;
}
function addCI(repo) {
let row_CI = document.createElement('td');
const a_CI = document.createElement('a');
a_CI.setAttribute(
Expand All @@ -8154,29 +8187,7 @@ function addTR(repo) {
CI_image.setAttribute('alt', 'CI Build Status');
a_CI.appendChild(CI_image);
row_CI.appendChild(a_CI);

let row_doc = document.createElement('td');
const a_CI_doc = document.createElement('a');
a_CI_doc.setAttribute('href', repo.html_url + '/actions');
const CI_doc_image = document.createElement('img');
CI_doc_image.setAttribute(
'src',
'https://github.com/giellalt/' +
repo.name +
'/workflows/Docs/badge.svg'
);
CI_doc_image.setAttribute('alt', 'Doc Build Status');
a_CI_doc.appendChild(CI_doc_image);
row_doc.appendChild(a_CI_doc);

row.appendChild(row_lang);
row.appendChild(row_repo);
row.appendChild(row_license);
row.appendChild(row_issues);
row.appendChild(row_doc);
row.appendChild(row_CI);

return row;
return row_CI;
}

function doesTopicsHaveSomeFilter(topics, filters) {
Expand Down

0 comments on commit 4915441

Please sign in to comment.