Commit 0b56ebab authored by Ivanq's avatar Ivanq

Add a link to file editing

parent 8329182d
......@@ -62,6 +62,7 @@
<a class="info-link button" id="fork">Fork</a>
<a class="info-link button button-blue" id="publish" title="Use this option after pushing">Sign &amp; Publish changes</a>
<input type="text" class="info-link input" id="git_url">
<a class="info-link button" id="edit">Edit</a>
</div>
<table id="files" class="files">
......
......@@ -17,6 +17,8 @@ repo.addMerger()
showLinks();
showTabs(1);
document.getElementById("edit").href = "../edit/?" + address + "/" + path.replace(/@/g, "@@") + "@" + branch.replace(/@/g, "@@");
return repo.getFiles(branch, "");
})
.then(() => {
......
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