/motion/templates/mobile/motion/base.html
https://github.com/giorgil2/typepad-motion · HTML · 100 lines · 85 code · 15 blank · 0 comment · 0 complexity · f6f88cac7b84de9e7617bbbc4932507c MD5 · raw file
- {% load i18n %}
- <!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" xmlns:at="http://www.sixapart.com/ns/at" id="sixapart-standard">
- <head>
- {% block html_head %}
- {% include "mobile/motion/bits/html_head.html" %}
- {% block feed %}{% endblock %}
- <title>{% block head_title %}{{ request.group.display_name }}{% endblock %}</title>
- {% if moderation and request.typepad_user.is_authenticated %}
- <script type="text/javascript" src="{{ settings.media_url }}typepadapp/js/jquery-ui-1.6.min.js"></script>
- <link rel="stylesheet" type="text/css" href="{{ settings.media_url }}typepadapp/css/smoothness/ui.all.css" />
- {% endif %}
- {% endblock %}
- <script type="text/javascript" charset="utf-8">
- $(document).ready(function () {
- if (location.hash == '#_compose') {
- location.hash = '';
- showComposeForm();
- }
- });
- function showComposeForm() {
- $('#compose-dialog').modal({
- maxHeight: 1000
- });
- return false;
- }
- function hideComposeForm() {
- $.modal.close();
- return false;
- }
- </script>
- </head>
- <body id="motion" class="mobile design-background {% block page_id %}{% endblock %} {% block page_layout %}layout-one-column{% endblock %} noscript">
- <div id="container">
- <div id="container-inner">
- {% include "mobile/motion/banners/header.html" %}
- {% include "mobile/motion/bits/flash.html" %}
- <div id="pagebody" class="design-content-border design-content-font design-content-color">
- <div id="pagebody-inner">
- {% block content_head %}
- {% if form.url and settings.allow_posting and typepad_user.is_authenticated %}
- {% if moderation.user_is_blocked %}
- <div id="user-compose" class="design-compose-background suspended">
- {% trans "Your posting privileges on this site have been suspended." %}
- </div>
- {% else %}
- <div id="user-compose" class="design-compose-background">
- <form class="submit-wrapper" id="post-stuff">
- <button onclick="showComposeForm(); return false">{% trans "POST" %}</button>
- </form>
- </div>
- {% endif %}
- {% else %}
- <div id="user-compose" class="design-compose-background">
- <form class="submit-wrapper" id="post-stuff" action="{% url home %}#_compose">
- <button>{% trans "POST" %}</button>
- </form>
- </div>
- {% endif %}
- {% endblock %}
- {% block navigation %}
- {% include "mobile/motion/bits/navigation.html" %}
- {% endblock %}
- <div id="alpha">
- <div id="alpha-inner">
- {% block content_body %}
- {% endblock %}
- </div><!-- end #alpha-inner -->
- </div><!-- end #alpha -->
- </div><!-- end #pagebody-inner -->
- </div><!-- end #pagebody -->
- {% include "mobile/motion/banners/footer.html" %}
- </div><!-- end #container-inner -->
- </div><!-- end #container -->
- {% if moderation %}
- {% include moderation.dialogs_template %}
- {% endif %}
- <div style="display:none">
- <div id="compose-dialog" title="{% trans "Add a Post" %}">
- {% include "mobile/motion/bits/compose_form.html" %}
- </div>
- </div>
- </body>
- </html>