Commit 7b327510 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: Link "learn how" in processing page works

parent 7fe09fb9
......@@ -6,8 +6,19 @@
$(document).ready(function () {
"use strict";
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
}
// Current_log is not used for auto displaying mode, only for manual reload of log file!!!
var current_log = 'instance.log',
var current_log = (getQueryVariable("logfile") !== undefined)? getQueryVariable("logfile") : "instance.log",
sending,
state,
selectedFile = "",
......
......@@ -37,7 +37,7 @@
<p>Processing</p>
<div class="clear"></div>
</div>
<p>SlapOS rebuild your software from source, allowing you to easily patch or add any free software. <a href="#">Lean how!</a></p>
<p>SlapOS rebuild your software from source, allowing you to easily patch or add any free software. <a href="{{ url_for('viewLog', logfile='software.log') }}">Learn how!</a></p>
</div>
<h2 class="instance">Running State</h2>
......@@ -49,7 +49,7 @@
<p>Waiting for starting</p>
<div class="clear"></div>
</div>
<p>SlapOS configure your running environment to match your needs. <a href="#">Lean how!</a></p>
<p>SlapOS configure your running environment to match your needs. <a href="{{ url_for('viewLog', logfile='instance.log') }}">Learn how!</a></p>
</div>
<div class="separator"></div>
......
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