Commit 1467f1c3 authored by Ivanq's avatar Ivanq

Show correct address instead of repo.git

parent e047758d
......@@ -12,7 +12,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(1);
showHeader(1, content.git);
showBranches();
showPath(true);
showLinks();
......
......@@ -12,7 +12,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(1);
showHeader(1, content.git);
showBranches();
showPath(true);
showLinks();
......
......@@ -14,7 +14,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(1);
showHeader(1, content.git);
showTabs(1);
document.getElementById("new_issue").href = "new/?" + address;
......
......@@ -12,7 +12,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(2);
showHeader(2, content.git);
showTabs(2);
document.getElementById("submit").onclick = () => {
......
......@@ -52,7 +52,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(2);
showHeader(2, content.git);
showTabs(2);
return repo.getIssue(id, jsonId);
......
......@@ -42,7 +42,7 @@ function showTitle(title) {
}
});
}
function showHeader(level) {
function showHeader(level, gitAddress) {
document.getElementById("fork").onclick = () => {
repo.fork();
};
......@@ -68,7 +68,7 @@ function showHeader(level) {
}
});
document.getElementById("git_url").value = "git clone $path_to_zeronet/data/" + address + "/repo.git";
document.getElementById("git_url").value = "git clone $path_to_zeronet/data/" + address + "/" + gitAddress;
}
function showBranches() {
......
......@@ -12,7 +12,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(0);
showHeader(0, content.git);
showBranches();
showPath(false);
showLinks();
......
......@@ -12,7 +12,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(1);
showHeader(1, content.git);
showBranches();
showPath(true);
showLinks();
......
......@@ -14,7 +14,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(1);
showHeader(1, content.git);
showTabs(1);
document.getElementById("new_pull_request").href = "new/?" + address;
......
......@@ -21,7 +21,7 @@ repo.addMerger()
}
showTitle(content.title);
showHeader(1);
showHeader(1, content.git);
showTabs(1);
// Description
......
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