Fix links to github view and edit pages (#8334)
This commit is contained in:
committed by
k8s-ci-robot
parent
79e4272b55
commit
740d14fdf2
@@ -11,10 +11,10 @@ $( document ).ready(function() {
|
||||
if(forwarding) {
|
||||
$("#generalInstructions").hide();
|
||||
$("#continueEdit").show();
|
||||
$("#continueEditButton").text("Edit " + forwarding);
|
||||
$("#continueEditButton").attr("href", "https://github.com/kubernetes/website/edit/{{< param "docsbranch" >}}/" + forwarding)
|
||||
$("#viewOnGithubButton").text("View " + forwarding + " on GitHub");
|
||||
$("#viewOnGithubButton").attr("href", "https://git.k8s.io/website/" + forwarding)
|
||||
$("#continueEditButton").text("Edit " + "content/en/" + forwarding);
|
||||
$("#continueEditButton").attr("href", "https://github.com/kubernetes/website/edit/{{< param "docsbranch" >}}/" + "content/en/" + forwarding)
|
||||
$("#viewOnGithubButton").text("View " + "content/en/" + forwarding + " on GitHub");
|
||||
$("#viewOnGithubButton").attr("href", "https://git.k8s.io/website/" + "content/en/" + forwarding)
|
||||
} else {
|
||||
$("#generalInstructions").show();
|
||||
$("#continueEdit").hide();
|
||||
|
||||
Reference in New Issue
Block a user