layout.html 7.01 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
  <head>
5
	{% block head %}
6 7 8
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <title>SlapOS Buildout web runner</title>
9

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

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

14 15 16
    <link href="{{ url_for('static', filename='css/styles.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
    <link href="{{ url_for('static', filename='css/superfish.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
    <link href="{{ url_for('static', filename='css/jquery-ui-1.10.3.custom.min.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
17

Alain Takoudjou's avatar
Alain Takoudjou committed
18 19 20 21 22 23 24
    <script src="{{ url_for('static', filename='js/jquery/jquery-1.10.2.min.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/jquery/jquery-ui-1.10.3.custom.min.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/jquery/jquery.form.js') }}" type="application/javascript" charset="utf-8"></script>
  	<script src="{{ url_for('static', filename='js/jquery/popupBox.js') }}" type="application/javascript" charset="utf-8"></script>
  	<script src="{{ url_for('static', filename='js/jquery/jqueryToolTip.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/jquery/superfish.min.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/jquery/hoverIntent.js') }}" type="application/javascript" charset="utf-8"></script>
25 26 27
    <script type=text/javascript>
      $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
    </script>
Alain Takoudjou's avatar
Alain Takoudjou committed
28 29
  	<script src="{{ url_for('static', filename='js/scripts/cookies.js') }}" type="application/javascript" charset="utf-8"></script>
  	<script src="{{ url_for('static', filename='js/scripts/common.js') }}" type="application/javascript" charset="utf-8"></script>
30 31 32 33 34 35 36
    <script type="text/javascript">
    	$(document).ready(function() {
        setInput();
        bindRemove();
    	});
    </script>
    {% if request.path != '/login' %}
Alain Takoudjou's avatar
Alain Takoudjou committed
37 38 39 40
    <script src="{{ url_for('static', filename='js/ace/ace.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/ace/ext-modelist.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/ace/ext-language_tools.js') }}" type="application/javascript" charset="utf-8"></script>
    <script src="{{ url_for('static', filename='js/scripts/process.js') }}" type="application/javascript" charset="utf-8"></script>
41 42 43 44 45 46 47 48 49 50 51
    <script type="text/javascript">
  		$(document).ready(function() {
    		if($("input#fmsg").val() != ""){
    		   $("#error").Popup($("input#fmsg").val(), {type:'info', duration:5000, load:true});
    		}
    		bindRun();
        $('ul.sf-menu').superfish({
      		delay:       600,
    			speed:       'fast',
    			cssArrows:  false
    		});
52
  		});
53 54
  	</script>
    {%endif%}
55
	{% endblock %}
56 57 58
  </head>
  <body>
	  <div id="error"></div>
59

60 61 62 63 64 65 66
    <div {% if request.path != '/login' %}id="page"{%else%}id="login-page"{%endif%}>
    <input type="hidden" name="fmsg" value="{{ get_flashed_messages()[0] }}" id="fmsg" />
    {% if request.path != '/login' %}
      <div id="header">
        <div class="block_header">
          <a href="{{ url_for('home') }}" style="float:left;" id="home" title="Home"><img alt="" src="{{ url_for('static', filename='images/home.png') }}" /></a>
	        <div class="line"></div>
67 68 69 70
          <a href="http://community.slapos.org/wiki/osoe-Lecture.SlapOS.Extended" style="float:left;position:relative;top:1px;" target="_blank"><img src="{{ url_for('static', filename="images/doc.png")}}" alt="documentation" title="Documentation" /></a> 
	        <div class="line"></div>
          <a href="http://community.slapos.org/forum" style="float:left;position:relative;top:1px;" target="_blank"><img src="{{ url_for('static', filename="images/forum.png")}}" alt="forum" title="Forum" /></a> 
	        <div class="line"></div>
71 72
          <h2 class="info">{% block title %}{% endblock %} - {{session.title}}</h2>
    	    <div class="run">
73
            <div id="running" style="display:none">
74 75 76
              <img alt="" src="{{ url_for('static', filename='images/ajax_roller.gif') }}" height='26' title="slapgrid is currently running"/>
              <div class="clear"></div>
            </div>
77 78
          </div>
        </div>
79 80 81 82
        <div id="wmenu">
          <ul class="sf-menu">
            <li><a href="{{ url_for('editCurrentProject') }}">Editor</a></li>
            <li><a href="{{ url_for('inspectInstance') }}">Services</a></li>
83
            <li><a href="{{ url_for('viewLog') }}">Logs</a></li>
84
            <li><a href="{{ url_for('shell') }}">Terminal</a></li>
85 86 87 88 89 90 91 92 93
            <li><a href="{{ url_for('manageRepository')}}#tab2">Git</a></li>
            <li class='right_menu main_menu'><a href="#"></a>
              <ul>
                <li><a href="{{ url_for('myAccount')}}">Parameters</a></li>
                <li class='sep'></li>
                <li><a href="{{ url_for('openProject', method='open')}}">Open Software Release</a></li>
                <li><a href="{{ url_for('openProject', method='new')}}">Create Software Release</a></li>
                <li class='sep'></li>
                <li><a href="{{ url_for('removeInstance') }}" id="removeIst">Destroy All Services</a></li>
94
                <li><a href="{{ url_for('runInstanceProfile') }}" id="instrun">Redeploy Services</a></li>
95 96
                <li class='sep'></li>
                <li><a href="{{ url_for('browseWorkspace') }}">Browse Workspace</a></li>
97
                <li><a href="{{ url_for('inspectSoftware') }}">My Software Releases</a></li>
98 99
             </ul>
            </li>
100
            <li class='right_menu slapos_run' id="softrun"><a href="{{ url_for('runSoftwareProfile') }}"></a>
101 102 103
            <!--<li class='right_menu slapos_top'><a href="{{ url_for('runInstanceProfile') }}" id="instrun"></a>-->
            </li>
          </ul>
104
        </div>
105
        <div class="clear"></div>
Alain Takoudjou's avatar
Alain Takoudjou committed
106
      </div>
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
    {% 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'%}
          <div class="main_head">
          </div>
          <div class="content">
        {% endif %}
        {% block body %}{% endblock %}
        {% if request.path != '/' and request.path != '/login'%}
          </div>
          <div class="main_foot">
          </div>
        {% endif %}
      </div>
    </div>
    {% if request.path != '/login' %}
    <div id="footer">
125
        SlapOS web runner &copy; Vifib SARL 2011-2014 - All right reserved - Creative Commons Shared Alike
126 127 128 129 130
    </div>
    {%endif%}
    </div>

  </body>
131
</html>