https://github.com/ging/horizon
Raw File
Tip revision: 307a4924ff1277ce03094d7e280ed19322d6d5e8 authored by Alan Pevec on 11 April 2013, 14:17:24 UTC
Final versioning for 2012.2.4
Tip revision: 307a492
base.html
{% load branding i18n %}
<!DOCTYPE html>
<html>
  <head>
    <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
    <title>{% block title %}{% endblock %} - {% site_branding %}</title>
    {% include "horizon/_conf.html" %}
    {% block css %}
      {% include "_stylesheets.html" %}
    {% endblock %}
    {% include "horizon/client_side/_script_loader.html" %}
  </head>
  <body id="{% block body_id %}{% endblock %}">
    {% block content %}
      {# FIXME(gabriel): remove the following warning block when Nova fixes their scoping upstream. #}
      {% if request.user.is_superuser and request.horizon.dashboard.slug == "nova" %}
        <div class="warning">
          <div class="warning-text">
            <h3 class="alert-error">
                <strong>{% trans "Caution" %}:</strong>
                <span>{% trans "You are acting as an admin user in the project dashboard." %}</span>
            </h3>
            <a href="{% url horizon:nova:overview:warning %}" class="btn btn-small btn-danger ajax-modal">{% trans "Learn More" %}</a>
          </div>
        </div>
      {% endif %}
      <div id="container">
        {% block sidebar %}
          {% include 'horizon/common/_sidebar.html' %}
        {% endblock %}
        <div id='main_content'>
          <div class='topbar'>
          {% include "_header.html" %}
          {% block page_header %}{% endblock %}
          </div>
          {% include "horizon/_messages.html" %}
          {% block main %}{% endblock %}
        </div>
      </div>
    {% endblock %}
    <div id="footer">
      {% block footer %}{% endblock %}
    </div>
    {% block js %}
      {% include "horizon/_scripts.html" %}
    {% endblock %}
    <div id="modal_wrapper" />
  </body>
</html>
back to top