<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>Djagios</title>
        <link rel="stylesheet" type="text/css" href="/@@media/main.css">
        {% block header %}
        {% endblock header %}
    </head>
    <body>
        <div class="head">
            <img src="/@@media/logo.jpg">
            <img src="/@@media/crede.jpg">
        </div>
        <div class="body">
            <div class="menu">
                {% block menu %}
                {% if user.is_authenticated %}
                {% if user.is_staff %}
                <h4>staff menu</h4>
                <ul>
                    <li> <a href="/admin">admin</a> </li>
                </ul>
                {% endif %}
                <h4>{{ user.username }}'s menu </h4></br>
                <ul>
                    {% if perms.core.add_host %}
                    <li> <a href='/host/add'>add a host</a> </li>
                    {% endif %}
                    {% if perms.core.change_service %}
                    <li> <a href='/service/addhost'>add service to host</a> </li>
                    <li> <a href='/service/removehost'>remove service from host</a> </li>
                    {% endif %}
                    {% if perms.core.delete_host %}
                    <li> <a href='/host/delete'>remove</a> </li>
                    {% endif %}
                    <li> <a href='/logout'>logout</a> </li>
                </ul>
                {% endif %}
                {% endblock menu %}
            </div>

            <div class="content">
                <div class="actualcontent">
                    {% block content %}
                    {% endblock %}
                </div>
            </div>
            <br class="clear"/>
        </div>
        <div class="footer">
            Copyright Djagios Foundation. Using theme {{ config.theme_name }}
        </div>
    </body>
