/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

  1. {% load i18n %}
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:at="http://www.sixapart.com/ns/at" id="sixapart-standard">
  5. <head>
  6. {% block html_head %}
  7. {% include "mobile/motion/bits/html_head.html" %}
  8. {% block feed %}{% endblock %}
  9. <title>{% block head_title %}{{ request.group.display_name }}{% endblock %}</title>
  10. {% if moderation and request.typepad_user.is_authenticated %}
  11. <script type="text/javascript" src="{{ settings.media_url }}typepadapp/js/jquery-ui-1.6.min.js"></script>
  12. <link rel="stylesheet" type="text/css" href="{{ settings.media_url }}typepadapp/css/smoothness/ui.all.css" />
  13. {% endif %}
  14. {% endblock %}
  15. <script type="text/javascript" charset="utf-8">
  16. $(document).ready(function () {
  17. if (location.hash == '#_compose') {
  18. location.hash = '';
  19. showComposeForm();
  20. }
  21. });
  22. function showComposeForm() {
  23. $('#compose-dialog').modal({
  24. maxHeight: 1000
  25. });
  26. return false;
  27. }
  28. function hideComposeForm() {
  29. $.modal.close();
  30. return false;
  31. }
  32. </script>
  33. </head>
  34. <body id="motion" class="mobile design-background {% block page_id %}{% endblock %} {% block page_layout %}layout-one-column{% endblock %} noscript">
  35. <div id="container">
  36. <div id="container-inner">
  37. {% include "mobile/motion/banners/header.html" %}
  38. {% include "mobile/motion/bits/flash.html" %}
  39. <div id="pagebody" class="design-content-border design-content-font design-content-color">
  40. <div id="pagebody-inner">
  41. {% block content_head %}
  42. {% if form.url and settings.allow_posting and typepad_user.is_authenticated %}
  43. {% if moderation.user_is_blocked %}
  44. <div id="user-compose" class="design-compose-background suspended">
  45. {% trans "Your posting privileges on this site have been suspended." %}
  46. </div>
  47. {% else %}
  48. <div id="user-compose" class="design-compose-background">
  49. <form class="submit-wrapper" id="post-stuff">
  50. <button onclick="showComposeForm(); return false">{% trans "POST" %}</button>
  51. </form>
  52. </div>
  53. {% endif %}
  54. {% else %}
  55. <div id="user-compose" class="design-compose-background">
  56. <form class="submit-wrapper" id="post-stuff" action="{% url home %}#_compose">
  57. <button>{% trans "POST" %}</button>
  58. </form>
  59. </div>
  60. {% endif %}
  61. {% endblock %}
  62. {% block navigation %}
  63. {% include "mobile/motion/bits/navigation.html" %}
  64. {% endblock %}
  65. <div id="alpha">
  66. <div id="alpha-inner">
  67. {% block content_body %}
  68. {% endblock %}
  69. </div><!-- end #alpha-inner -->
  70. </div><!-- end #alpha -->
  71. </div><!-- end #pagebody-inner -->
  72. </div><!-- end #pagebody -->
  73. {% include "mobile/motion/banners/footer.html" %}
  74. </div><!-- end #container-inner -->
  75. </div><!-- end #container -->
  76. {% if moderation %}
  77. {% include moderation.dialogs_template %}
  78. {% endif %}
  79. <div style="display:none">
  80. <div id="compose-dialog" title="{% trans "Add a Post" %}">
  81. {% include "mobile/motion/bits/compose_form.html" %}
  82. </div>
  83. </div>
  84. </body>
  85. </html>