layout.html 6.78 KB
Newer Older
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2

3
<html xmlns="http://www.w3.org/1999/xhtml">
4 5

    <head>
6
	{% block head %}
7 8
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />

Alain Takoudjou's avatar
Alain Takoudjou committed
9
        <title>SlapOS Buildout web runner</title>
10 11 12 13 14

        <meta name="keywords" content="" />

        <meta name="description" content="" />

15
        <link href="{{ url_for('static', filename='css/styles.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
Marco Mariani's avatar
Marco Mariani committed
16
        <script src="{{ url_for('static', filename='js/jquery/jquery-1.8.0.js') }}" type="text/javascript" charset="utf-8"></script>
17 18 19
        <script src="{{ url_for('static', filename='js/jquery/jquery.form.js') }}" type="text/javascript" charset="utf-8"></script>
      	<script src="{{ url_for('static', filename='js/jquery/popup.js') }}" type="text/javascript" charset="utf-8"></script>
      	<script src="{{ url_for('static', filename='js/jquery/jqueryToolTip.js') }}" type="text/javascript" charset="utf-8"></script>
20 21 22
        <script type=text/javascript>
          $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
        </script>
23 24
	<script src="{{ url_for('static', filename='js/scripts/cookies.js') }}" type="text/javascript" charset="utf-8"></script>
	<script src="{{ url_for('static', filename='js/scripts/common.js') }}" type="text/javascript" charset="utf-8"></script>
25 26 27
  <script type="text/javascript">
  	$(document).ready(function() {
      setInput();
28
      bindRemove();
29 30 31 32 33
  	});
  </script>
  {% if request.path != '/login' %}
  <script src="{{ url_for('static', filename='js/scripts/process.js') }}" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript">
34
		$(document).ready(function() {
Alain Takoudjou's avatar
Alain Takoudjou committed
35 36 37 38 39 40 41
  		if($("input#fmsg").val() != ""){
  		   $("#error").Popup($("input#fmsg").val(), {type:'info', duration:5000, load:true});
  		}
  		bindRun();
  		if(!checkSavedCmd()){
  		    getRunningState();
  		}
42
		});
43
	</script>
44
  {%endif%}
45
	{% endblock %}
46
    </head>
47
    <body>
48
	<div id="error"></div>
49 50

        <div {% if request.path != '/login' %}id="page"{%else%}id="login-page"{%endif%}>
51
	    <input type="hidden" name="fmsg" value="{{ get_flashed_messages()[0] }}" id="fmsg" />
52
      {% if request.path != '/login' %}
53 54
            <div id="header">
                <div class="block_header">
Alain Takoudjou's avatar
Alain Takoudjou committed
55
                    <a href="{{ url_for('home') }}" style="float:left;" id="home" {% if request.path != '/' %}rel="tooltip"{% endif %} title="Home"><img alt="" src="{{ url_for('static', filename='images/home.png') }}" /></a>
56
		    <div class="line"></div>
57
		    <a href="{{ url_for('editCurrentProject') }}" style="float:left" title="Edit your current project"><img alt="" src="{{ url_for('static', filename='images/project.png') }}" /></a>
58
        <div class="line"></div>
59
  	    <a href="{{ url_for('dologout') }}" style="float:left" title="Close your session"><img alt="" src="{{ url_for('static', filename='images/logout.png') }}" /></a>
60
		    <div class="line"></div>
61
                    <h2 class="info">{% block title %}{% endblock %} - {{session.title}}</h2>
62 63
		    <div class="run"><span id="running" style="display:none"><img alt="" src="{{ url_for('static', filename='images/ajax_roller.gif') }}"
			height='26' title="slapgrid is currently running"/></span></div>
64 65 66
                </div>
                <div class="wmenu">
                    <ul>
67
                        <li><a href="{{ url_for('editSoftwareProfile') }}">Profiles</a></li>
68 69
                        <li><a href="{{ url_for('browseWorkspace') }}">Workspace</a></li>
                        <li class='sep'></li>
70 71
                        <li><a href="{{ url_for('runSoftwareProfile') }}" id="softrun">Run software</a></li>
                        <li><a href="{{ url_for('viewSoftwareLog') }}">Software log</a></li>
72
                        <li><a href="{{ url_for('inspectSoftware') }}">SR result</a></li>
73
                        <li class='sep'></li>
74 75 76
                        <li><a href="{{ url_for('runInstanceProfile') }}" id="instrun">Run instance</a></li>
                        <li><a href="{{ url_for('viewInstanceLog') }}">Instance log</a></li>
                        <li><a href="{{ url_for('inspectInstance') }}">Inspect instance</a></li>
77
                        <li><a id="removeIst" href="#">Destroy instance</a></li>
78 79 80
                    </ul>
                </div>
                <div class="clear"></div>
81
            </div>
82 83 84 85
            {% endif %}
            <div {% if request.path != '/login' %}id="main"{% endif %}>
                <div {% if request.path == '/' %} class="home_content" {%elif request.path == '/login'%} {%else%} id="content" {% endif %}>
                    {% if request.path != '/' and request.path != '/login'%}
86 87 88 89 90
                        <div class="main_head">
                        </div>
                        <div class="content">
                    {% endif %}
                    {% block body %}{% endblock %}
91
                    {% if request.path != '/' and request.path != '/login'%}
92 93 94 95 96
                        </div>
                        <div class="main_foot">
                        </div>
                    {% endif %}
                </div>
97
            </div>
98
            {% if request.path != '/login' %}
99
            <div id="footer">
100
                SlapOS web runner &copy; Vifib SARL 2011, 2012, 2013 - All right reserved - Creative Commons Shared Alike
101
            </div>
102
            {%endif%}
103
        </div>
Alain Takoudjou's avatar
Alain Takoudjou committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
        <div class="popup">
        <table id="dpop" cellpadding="0" border="0">
        <tbody><tr>
          <td id="topleft" class="corner"></td>
          <td class="top"><img width="30" height="29" alt="" src="{{ url_for('static', filename='images/bubble-tail2.png') }}"/></td>
          <td id="topright" class="corner"></td>
        </tr><tr>
          <td class="left"></td>
          <td><div class="popup-contents" id="jqtooltip"></div></td>
          <td class="right"></td>
        </tr><tr>
          <td class="corner" id="bottomleft"></td>
          <td class="bottom" valign="left"></td>
          <td id="bottomright" class="corner"></td>
        </tr>
        </tbody></table>
      </div>
      <div id="tooltip-home" style="display:none">
        <span style="font-weight:bold">QUICK ACCESS TO MENU</span><br/><br/>
          <div style="margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"></div>
124
          <ul class="menu">
Alain Takoudjou's avatar
Alain Takoudjou committed
125
            <li><a href="{{ url_for('manageProject')}}">Manage Repositories</a></li>
126
            <li><a href="{{ url_for('configRepo')}}" >Clone your repository</a></li>
Alain Takoudjou's avatar
Alain Takoudjou committed
127
            <li><a href="{{ url_for('openProject', method='open')}}">Open Software Release</a></li>
128
            <li><a href="{{ url_for('openProject', method='new')}}">Create Software Release</a></li>
Alain Takoudjou's avatar
Alain Takoudjou committed
129
            <li style="heigth:1px"></li>
Alain Takoudjou's avatar
Alain Takoudjou committed
130 131
          </ul>
      </div>
132 133
    </body>
</html>