Source

eyes / eyeswebapp / templates / base.html

<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{% load i18n %}
<html xmlns="http://www.w3.org/1999/xhtml"
    dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
    xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
    lang="{% firstof LANGUAGE_CODE 'en' %}">
  <head>
    <title>{% block title %}{% endblock %}</title>
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css" />
	<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>
    {% block js %}{% endblock %}
  </head>

  <body>
	<div data-role="page"> 
	    {% block header %}<div data-role="header">
          <h1>{% block pagetitle %}Eyes{% endblock %}</h1>
	      </div>{% endblock %}
		<div data-role="content">
			{% if error %}
			<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
				<li data-role="list-divider">Error</li>
				  <li>{{ error }}</li>
			</ul>
			{% endif %}
			{% if info %}
			<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
				<li data-role="list-divider">Information</li>
				  <li>{{ info }}</li>
			</ul>
			{% endif %}
			{% if messages %}
			<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
				<li data-role="list-divider">Information</li>
				{% for message in messages %}
					<li>{{ message }}</li>
				{% endfor %}
			</ul>
			{% endif %}
			{% block content %}{% endblock %}
		</div>
	    <div data-role="footer" id="footer">{% block footer %}
			<div data-role="navbar">
				<ul>
					<li><a href="/core/" rel="external">Monitors</a></li>
					<li><a href="/core/host_list/" rel="external">Hosts</a></li>
					<li><a href="/core/monitor_list/" rel="external">New</a></li>
					<li>{% if user.is_authenticated %}
						<a href="{% url django.contrib.auth.views.logout %}" rel="external">{{ user.username }}</a>
						{% else %}
						<a href="{% url django.contrib.auth.views.login %}" rel="external">Anonymous (login)</a>
					{% endif %}</li>
				</ul>
			</div><!-- /navbar -->
	    {% endblock %}</div>
	</div> 
  </body>
</html>