Skip to content

Commit

Permalink
Added links to repositories issues
Browse files Browse the repository at this point in the history
  • Loading branch information
plehegar committed Jan 2, 2020
1 parent bcec394 commit 445cd95
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions issue-metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
dl.labels dd {
margin-top: 1em;
}
dl.labels dt span {
dl.labels dt a {
padding: 0.7ex;
border-radius: 0.7ex;
text-decoration: none;
color: black;
}
</style>
</head>
Expand Down Expand Up @@ -197,15 +199,14 @@ <h2 id="projects">Projects</h2>
let dt = dts[index];
let className = dt.className;
if (className) {
console.log("className: " + className);
let dd = dt.nextElementSibling;
console.log(dd);
let entries = "<dl class='labels'>";
labels.forEach(label => {
if (label.name.indexOf(className) === 0) {
console.log("label: " + label.name);
entries+= "<dt id='" + label.name + "'><span style='background-color: #" + label.color + "'>" + label.name
+ "</span></dt><dd>" + label.longdesc + "</dd>";
let sublabel = label.name.substring(className.length+1);
entries+= `<dt id='${label.name}'><a href='https://github.com/${label.repo}/issues/?q=label%3A${sublabel}'
style='background-color: #${label.color}'>${label.name}</a></dt>
<dd>${label.longdesc}</dd>`;
}
})
let div = document.createElement("div");
Expand Down

0 comments on commit 445cd95

Please sign in to comment.