layout.html 4.81 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 9 10 11 12 13 14
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />

        <title>Buildout runner</title>

        <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" />
16
        <script src="{{ url_for('static', filename='jquery/jquery-1.6.2.min.js') }}" type="text/javascript" charset="utf-8"></script>        
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        <script type=text/javascript>
          $SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
        </script>
        <script type="text/javascript">
		$(document).ready(function() {
			$('input[type="text"]').addClass("idleField");
       		$('input[type="text"]').focus(function() {
       			$(this).removeClass("idleField").addClass("focusField");
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		$('input[type="text"]').blur(function() {
    			$(this).removeClass("focusField").addClass("idleField");
    		    if ($.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
		});			
	</script>
	{% endblock %}
41
    </head>
42
    <body>
43
        <div id="page">
44 45 46
            <div id="logo">
                <a href="{{ url_for('home') }}"><img src="{{ url_for('static', filename='images/logo.png') }}" alt="" /></a>
            </div>
47 48
            <div id="header">
                <div class="block_header">
49 50
                    <a href="{{ url_for('home') }}" style="float:left;" title="Home"><img alt="" src="{{ url_for('static', filename='images/home.png') }}" /></a>
		    <div class="line"></div>
51
		    <a href="{{ url_for('curentSoftware') }}" style="float:left" title="Edit current software release"><img alt="" src="{{ url_for('static', filename='images/project.png') }}" /></a>
52
		    <div class="line"></div>
53
                    <h2 class="info">{% block title %}{% endblock %} - {{session.title}}</h2>
54 55 56
                </div>
                <div class="wmenu">
                    <ul>
57
                        <li><span class="title_software">Software</span></li>
58 59 60 61 62
                        <li><a href="{{ url_for('editSoftwareProfile') }}">Edit</a></li>
                        <li><a href="{{ url_for('runSoftwareProfile') }}">Run</a></li>
                        <li><a href="{{ url_for('viewSoftwareLog') }}">Build log</a></li>
                        <li><a href="{{ url_for('inspectSoftware') }}">Inspect</a></li>
                        <li><a href="{{ url_for('removeSoftware') }}">Remove</a></li>
63

64
                        <li class="space"><span class="title_instance">Instance</span></li>
65 66 67 68 69 70
                        <li><a href="{{ url_for('editInstanceProfile') }}">Edit</a></li>
                        <li><a href="{{ url_for('runInstanceProfile') }}">Run</a></li>
                        <li><a href="{{ url_for('viewInstanceLog') }}">Build log</a></li>
                        <li><a href="{{ url_for('inspectInstance') }}">Inspect</a></li>
                        <li><a href="{{ url_for('stopAllPartition') }}">Stop all</a></li>
                        <li><a href="{{ url_for('removeInstance') }}">Remove</a></li>
71 72 73
                    </ul>
                </div>
                <div class="clear"></div>
74 75 76 77 78 79 80 81 82 83 84 85 86
            </div>            
            <div id="main">                
                <div class="flash" id="flash">
                    {% with messages = get_flashed_messages() %}
                    {% if messages %}
                    <ul class="flashes">
                        {% for message in messages %}
                        <li>{{ message }}</li>
                        {% endfor %}
                    </ul>
                    {% endif %}
                    {% endwith %}
                </div>                
87
                <div {% if request.path == '/' %} class="home_content" {%else%} id="content" {% endif %}>
88 89 90 91 92 93 94 95 96 97 98 99
                    {% if request.path != '/' %}
                        <div class="main_head">
                        </div>
                        <div class="content">
                    {% endif %}
                    {% block body %}{% endblock %}
                    {% if request.path != '/' %}
                        </div>
                        <div class="main_foot">
                        </div>
                    {% endif %}
                </div>
100 101
            </div>
            <div id="footer">
102
                SlapOs web runner &copy; Vifib SARL 2011 - All right reserved - Creative Commons Shared Alike Non Commercial
103 104 105 106
            </div>
        </div>
    </body>
</html>