view personasbackend/personas/templates/personas/base.html @ 160:0b247e2afdfa

Moved javascript code out of list.html and into a new file, media/js/personas.js.
author Atul Varma <varmaa@toolness.com>
date Fri, 04 Apr 2008 15:37:03 -0700
parents bc6161ef735f
children 824a27b7f869
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type"
          content="text/html; charset=iso-8859-1" />
    <title>{{ section.name }} :: {{ site_name }}</title>
    <link rel="stylesheet"
          type="text/css"
          href="{{ MEDIA_URL }}css/otherpages.css" />
    <link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.ico"
          type="image/x-icon" />
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/personas.js"></script>
  </head>
<body>
  <div id="content">
    <div id="top">

      <img src="http://labs.mozilla.com/projects/personas/images/personas-logo-beta.png"
           alt="Personas for Firefox" />
    </div>
        
    <div id="bottom">
      <div><img src="http://labs.mozilla.com/projects/personas/images/otherpages-table-top.png" alt="" /></div>

      <div class="table_middle">
        <div id="sidebar">
          <div class="menu-box">
            <ul>
              {% for entry in sidebar_entries %}
              {% ifequal entry.name section.name %}
              <li class="selected">
                <a href="{{ entry.url }}">{{entry.name}}</a>
              </li>
              {% else %}
              <li><a href="{{ entry.url }}">{{ entry.name }}</a></li>
              {% endifequal %}
              {% endfor %}
              {% if perms.personas.can_publish %}
              <li><a href="{% url django.contrib.admin.views.main.index %}"
                     >Administer</a></li>
              {% endif %}
            </ul>
          </div>
          {% if user.is_authenticated %}
          <p>Logged in as {{ user.email }}.</p>
          <p><a href="{% url logout %}">Log out</a></p>
          {% else %}
          <a href="https://services.mozilla.com/" >Register</a> | 
          <a href="{% url login %}">Log in</a>
          {% endif %}
        </div>
        
        <div id="section-content">
          <div class="title">
            {% block title %}
            {% if title %}{{ title }}{% else %}{{ section.name }}{% endif %}
            {% endblock %}
          </div>
          <div class="divider"></div>
      
          <div class="details">
            {% if messages %}
            {% for message in messages %}
            <div class="message">{{ message }}</div>
            {% endfor %}
            {% endif %}
            {% block content %}{% endblock %}
          </div>
        </div>

        <div><img src="http://labs.mozilla.com/projects/personas/images/otherpages-table-foot.png" alt="" /></div>

      </div>
    
      <div id="footer">
        <div class="labs">
          <a href="http://labs.mozilla.com"><img src="http://labs.mozilla.com/projects/personas/images/mozilla-labs-large.png" alt="Mozilla Labs" border="0" /></a>

          Personas for Firefox is a <a href="http://labs.mozilla.com">Mozilla Labs Project</a>.
        </div>
        <div class="legal">
          &copy; 2007 Mozilla
          <span>
            <a href="http://www.mozilla.com/en-US/about/legal.html">Legal Notices</a> |
            <a href="http://www.mozilla.com/en-US/privacy-policy.html">Privacy Policy</a>
          </span>
        </div>
      </div>
    </div>
  </div>
</body>
</html>