Commit 25a8b4d9 authored by Leigh Stoller's avatar Leigh Stoller

Replace hardwired links to documentation with window.MANUAL.

This closes issue #314.
parent f4a9a9df
......@@ -26,6 +26,8 @@ $(function ()
// oops and waitwait modal to invoke.
$('#genilib-editor-body').hide();
$('#genilib-editor-body').html(pageString);
$('#genilib-editor-body .genilib-documentation')
.attr("href", window.MANUAL + "/geni-lib.html");
}
function render()
......
......@@ -603,7 +603,7 @@ $(function ()
// https://gitlab.flux.utah.edu/emulab/emulab-devel/issues/71
if ($('#pp_form #hwinfo').length == 0) {
$('#pp_form input[data-key=osNodeType]').parent().append(''+
'<a href="http://docs.cloudlab.us/hardware.html" style="'+
'<a href="' + window.MANUAL + '/hardware.html" style="'+
'position:absolute;'+
'right:21px;'+
'top: 8.5px;'+
......
......@@ -4,7 +4,7 @@
<button id="loadButton" class="btn btn-default">Upload</button>
<button id="runButton" class="btn btn-default">Test Script</button>
<button id="settingsButton" class="btn btn-default"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span></button>
<a href="http://docs.cloudlab.us/geni-lib.html" target="_blank"><span style="color: #337ab7" class="glyphicon glyphicon-question-sign"></span> How To Write a Genilib Script</a>
<a class="genilib-documentation" href="http://docs.cloudlab.us/geni-lib.html" target="_blank"><span style="color: #337ab7" class="glyphicon glyphicon-question-sign"></span> How To Write a Genilib Script</a>
<button id="cancelButton" class="btn btn-danger pull-right" style="margin-left: 10px">Cancel</button>
<button id="okButton" class="btn btn-primary pull-right" style="margin-left: 10px">Accept</button>
</div>
......
......@@ -831,7 +831,7 @@
</div>
<div class='modal-body'>
<p>
<a href="http://docs.cloudlab.us/geni-lib/index.html"
<a href="<%- manual %>/geni-lib/index.html"
target="_blank">geni-lib</a>
is a tool that allows users to generate RSpec
files from Python code. CloudLab offers the ability to use
......
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