Commit 1f666eff authored by Ivanq's avatar Ivanq

Show 'GIT' or 'HG' label on title

parent 9cd8ed8e
......@@ -100,4 +100,16 @@ p, ul, ol {
.nothing-here-yet.nothing-here-yet {
display: none;
cursor: default;
}
.repo-label {
display: inline-block;
padding: 4px;
margin-left: 8px;
vertical-align: top;
background-color: #DDD;
border-radius: 4px;
font-size: 12px;
}
\ No newline at end of file
......@@ -54,6 +54,15 @@ function showTitle(title) {
titleLink.textContent = title;
name.appendChild(titleLink);
let label = document.createElement("div");
label.className = "repo-label";
if(repo.git) {
label.innerHTML = "GIT";
} else if(repo.hg) {
label.innerHTML = "HG";
}
name.appendChild(label);
repo.getOwner()
.then(owner => {
name.innerHTML = "";
......@@ -63,6 +72,7 @@ function showTitle(title) {
name.appendChild(ownerLink);
name.appendChild(document.createTextNode(" " + arrow + " "));
name.appendChild(titleLink);
name.appendChild(label);
return repo.getOwnerAddress();
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment