<commit_before>{% comment %}
Copyright 2009 - Participatory Culture Foundation

This file is part of Miro Community.

Miro Community is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

Miro Community is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Miro Community.  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}

{% load uploadtemplate_tags %}
<!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">
  {% if not request.is_ajax %}
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/reset.css" %}" />
    <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/lights-on.css" %}" />
    <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/video_page.css" %}" />
<!--[if lt IE 8]>
   <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/msie7.css" %}" />
<![endif]-->
    {% if sitelocation.css or sitelocation.background %}
    <style type="text/css">
    {{ sitelocation.css|safe }}
    {% if sitelocation.background %}body {
       background: url("{{ sitelocation.background.url }}");
    }{% endif %}
    </style>
    {% endif %}
    <script src="http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min.js"></script>
    <script src="{% get_static_url "/js/extern/jquery.form.js" %}"
            type="text/javascript">
    </script>
    <script src="{% get_static_url "/js/miro_community.js" %}"
            type="text/javascript">
    </script>
    <title>{% block title %}{{ sitelocation.site.name }}{% endblock title %}</title>
    {% block head %}{% endblock head %}
  </head>
  {% endif %}
  <body id="{% block body_id %}admin{% endblock body_id %}" class="{% block body_class %}{% endblock %}">
    {% if not request.is_ajax %}
    <p class="help">Need help setting up your site or getting a certain feature working? Ask us, we'd love to help.  Email <NAME>: <a href="mailto:<EMAIL>"><EMAIL></a></p>

    <div id="wrapper" style="{% block wrapper-style-extra %}width: 85%; min-width: 960px;{% endblock %}">
      <div id="header">
        <div id="logo">
          {% url localtv_index as localtv_index %}
          <a href="{{ localtv_index }}">
            <img alt="{{ sitelocation.site.name }} Logo" src="{% if sitelocation.logo %}{{ sitelocation.logo.url }}{% else %}{% get_static_url "/images/logo.gif" %}{% endif %}" />
          </a>
          <h1 style="text-decoration: none;">
            <a href="{{ localtv_index }}">
              <span class="name">{{ sitelocation.site.name }}</span>
            </a>
            <span class="tagline">{{ sitelocation.tagline|safe }}</span>
          </h1>
        </div>
        {% if user_is_admin %}
        <ul class="login">
          <li>
            <a class="nick show_main med_button" href="{{ localtv_index }}"><span>View Main Site</span></a>
          </li>
        </ul>
        {% endif %}

      {% block nav %}{% include "localtv/admin/header.html" %}{% endblock %}
      </div>

      <div id="hover_wrap" class="rounded {5px transparent}">
        <div class="contentWrap"></div>
      </div>

      <div id="content">
      {% endif %}
        {% block content %}
        {% endblock content %}

      {% if not request.is_ajax %}
      </div>
    </div>
      {% block footer_wrapper %}
      {% endblock footer_wrapper %}
    {% if settings.GOOGLE_ANALYTICS_UA %}
    <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ?
  "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost +
  "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
      var pageTracker = _gat._getTracker("{{ settings.GOOGLE_ANALYTICS_UA }}");
      {% if settings.GOOGLE_ANALYTICS_DOMAIN %}
      pageTracker._setDomainName(".{{ settings.GOOGLE_ANALYTICS_DOMAIN }}");
      {% endif %}
      pageTracker._trackPageview();
  } catch(err) {}</script>
  {% endif %}
  {% endif %}<commit_msg>Bug #12408: Admin page should have a logout button<commit_after>{% comment %}
Copyright 2009 - Participatory Culture Foundation

This file is part of Miro Community.

Miro Community is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

Miro Community is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Miro Community.  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}

{% load uploadtemplate_tags %}
<!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">
  {% if not request.is_ajax %}
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/reset.css" %}" />
    <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/lights-on.css" %}" />
    <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/video_page.css" %}" />
<!--[if lt IE 8]>
   <link rel="StyleSheet" type="text/css" href="{% get_static_url "/css/msie7.css" %}" />
<![endif]-->
    {% if sitelocation.css or sitelocation.background %}
    <style type="text/css">
    {{ sitelocation.css|safe }}
    {% if sitelocation.background %}body {
       background: url("{{ sitelocation.background.url }}");
    }{% endif %}
    </style>
    {% endif %}
    <script src="http://cdn.jquerytools.org/1.1.2/full/jquery.tools.min.js"></script>
    <script src="{% get_static_url "/js/extern/jquery.form.js" %}"
            type="text/javascript">
    </script>
    <script src="{% get_static_url "/js/miro_community.js" %}"
            type="text/javascript">
    </script>
    <title>{% block title %}{{ sitelocation.site.name }}{% endblock title %}</title>
    {% block head %}{% endblock head %}
  </head>
  {% endif %}
  <body id="{% block body_id %}admin{% endblock body_id %}" class="{% block body_class %}{% endblock %}">
    {% if not request.is_ajax %}
    <p class="help">Need help setting up your site or getting a certain feature working? Ask us, we'd love to help.  Email <NAME>: <a href="mailto:<EMAIL>"><EMAIL></a></p>

    <div id="wrapper" style="{% block wrapper-style-extra %}width: 85%; min-width: 960px;{% endblock %}">
      <div id="header">
        <div id="logo">
          {% url localtv_index as localtv_index %}
          <a href="{{ localtv_index }}">
            <img alt="{{ sitelocation.site.name }} Logo" src="{% if sitelocation.logo %}{{ sitelocation.logo.url }}{% else %}{% get_static_url "/images/logo.gif" %}{% endif %}" />
          </a>
          <h1 style="text-decoration: none;">
            <a href="{{ localtv_index }}">
              <span class="name">{{ sitelocation.site.name }}</span>
            </a>
            <span class="tagline">{{ sitelocation.tagline|safe }}</span>
          </h1>
        </div>
        {% if user_is_admin %}
        <ul class="login">
          <li>
            <a class="nick show_main med_button" href="{{ localtv_index }}"><span>View Main Site</span></a>
          </li>
        </ul>
        {% endif %}

      {% block nav %}{% include "localtv/admin/header.html" %}{% endblock %}
      </div>

      <div id="hover_wrap" class="rounded {5px transparent}">
        <div class="contentWrap"></div>
      </div>

      <div id="content">
      {% endif %}
        {% block content %}
        {% endblock content %}

      {% if not request.is_ajax %}
      </div>
    </div>
      {% block footer_wrapper %}
        <div id="footer">
          <div class="local_footer">
          {% block footer %}
            {% autoescape off %}
            {{ sitelocation.footer_html }}
            {% endautoescape %}
          {% endblock footer %}
          </div>
          <div>
            <p class="powered"><span>{{ sitelocation.site.name }} is powered by <a href="http://www.mirocommunity.org">Miro Community</a></span>
            <a href="{{ settings.LOGOUT_URL }}?next={{ request.META.PATH_INFO }}">Logout {{ request.user.username }}</a>
            </p>
          </div>
        </div>
      {% endblock footer_wrapper %}
    {% if settings.GOOGLE_ANALYTICS_UA %}
    <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ?
  "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost +
  "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
      var pageTracker = _gat._getTracker("{{ settings.GOOGLE_ANALYTICS_UA }}");
      {% if settings.GOOGLE_ANALYTICS_DOMAIN %}
      pageTracker._setDomainName(".{{ settings.GOOGLE_ANALYTICS_DOMAIN }}");
      {% endif %}
      pageTracker._trackPageview();
  } catch(err) {}</script>
  {% endif %}
  {% endif %}
{'fraction_non_alphanumeric': 0.17343098362323264, 'fraction_numerical': 0.007425490794425796, 'mean_word_length': 2.96771589991929, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, 'https://': 2, 'lorem ipsum': 0, 'www.': 9, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '514840', 'n_tokens_mistral': 3345, 'n_tokens_neox': 3075, 'n_words': 796}