viewLog.html 4.23 KB
Newer Older
Łukasz Nowak's avatar
Łukasz Nowak committed
1
{% extends "layout.html" %}
2
{% block title %}View log{% endblock %}
3 4
{% block head %}
  {{ super() }}
Alain Takoudjou's avatar
Alain Takoudjou committed
5
  <script src="{{ url_for('static', filename='js/scripts/viewlog.js') }}" type="application/javascript" charset="utf-8"></script>
6
  <link href="{{ url_for('static', filename='css/ui.fancytree.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
Alain Takoudjou's avatar
Alain Takoudjou committed
7
  <script src="{{ url_for('static', filename='js/jquery/jquery.fancytree.min.js') }}" type="application/javascript" charset="utf-8"></script>
8
  <link href="{{ url_for('static', filename='css/colorbox.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
Alain Takoudjou's avatar
Alain Takoudjou committed
9
  <script src="{{ url_for('static', filename='js/jquery/jquery.colorbox-min.js') }}" type="application/javascript" charset="utf-8"></script>
10
{% endblock %}
Łukasz Nowak's avatar
Łukasz Nowak committed
11
{% block body %}
12 13


14
<h2 class="hight hide" id="logheader">Inspecting slapgrid log - Click for more options</h2>
15 16 17 18 19 20 21 22 23 24
<div class="log_btn" id="logconfigbox" style="display:none">
<span style="margin-left:15px; font-size: 18px;"> Update parameters </span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" name="liveupdate" id="manual" value="manual" />
<label for="manual">Manualy update</label>&nbsp;
<input type="radio" name="liveupdate" id="live" value="live" />
<label for="live">Live update</label>&nbsp;
<input type="radio" name="liveupdate" id="slow" value="slow" />
<label for="slow">From time to time</label>
</div>
25
<div class='space'></div>
26 27
<div class="log_content">
  <div class="log" id="salpgridLog"></div>
28
  <div class="log" id="manualLog" style="display:none"></div>
29 30 31
</div>
<div class="log_information">
  <div class="log_info_box">
32 33 34
    <div id="slapstate">
      <h2 class="software">Building State</h2>
      <div class="log_content_box">
35
         <div id="software_run_state" class="state_running">
36 37 38 39
          <span class="legend"></span>
          <p>Processing</p>
          <div class="clear"></div>
        </div>
40 41
        <p id="last_build_software" class="last_build"></p><br/>
        <div class="clear"></div>
42
        <p>SlapOS rebuilds 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>
43 44
      </div>

45 46 47 48 49 50 51 52 53
      <h2 class="instance">Running State</h2>
      <div class="log_content_box">
        <!--<div id="instance_run_state" class="state_terminated">-->
        <!--<div id="instance_run_state" class="state_stopped">-->
        <div id="instance_run_state" class="state_waiting">
          <span class="legend"></span>
          <p>Waiting for starting</p>
          <div class="clear"></div>
        </div>
54 55
        <p id="last_build_instance" class="last_build"></p><br/>
        <div class="clear"></div>
56
        <p>SlapOS configures your running environment and processes to match your needs. <a href="{{ url_for('viewLog', logfile='instance.log') }}">Learn how!</a></p>
57 58
      </div>

59 60 61 62 63 64
      <div class="separator"></div>
      <div style="height: 38px; text-align: center; padding-top: 25px;">
        <a href="#" id="slapswitch" class="lshare" rel="stop">STOP PROCESS</a>
      </div>
    </div>
    <div id="openloglist">
65
      <h2  class="boxtitle">Select log file to view</h2>
66 67 68 69 70 71 72 73
      <div style="height: 340px; margin-bottom: 10px;">
        <div id='addbox' style="display:none">
          <a href="#inline_content" id="inlineViewer" class="add_btn">ADD FILE</a>
          <div class="separator"></div>
        </div>
        <ul>
          <li rel='software.log'>Software.log</li>
          <li rel='instance.log' class='checked'>Instance.log</li>
74
         </ul>
75 76 77 78 79 80
      </div>
      <div class="separator"></div>
      <div style="height: 38px; text-align: left; padding: 20px 0 0 15px;">
        <a id="logEdit" class="lshare no-right-border" style="float:left">Edit list</a>
        <a id="refreshlog" class="lshare" style="float:left">Refresh log</a>
      </div>
81 82 83 84
    </div>
  </div>
</div>
<div class='clear'></div>
85 86 87 88 89 90 91 92 93 94

<!-- This contains the hidden content for inline calls -->
<div style='display:none'>
  <div id='inline_content' style='padding:10px; background:#fff;'>
    <div style='border: solid 1px #678dad; height: 300px; overflow: auto;'>
      <div id="fileTree"></div>
    </div>
    <input type=submit value="Add file" id="addfile" class="button">
  </div>
</div>
Łukasz Nowak's avatar
Łukasz Nowak committed
95
{% endblock %}