/core/templates/admin/base.html

http://github.com/plushcms/PlushCMS · HTML · 104 lines · 81 code · 16 blank · 7 comment · 0 complexity · ee8f5f0c015ff73f17ca365e86eb09fb MD5 · raw file

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
  3. <head>
  4. <title>{% block title %}{% endblock %}</title>
  5. <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />
  6. {% block extrastyle %}{% endblock %}
  7. <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]-->
  8. {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
  9. <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
  10. {% block extrahead %}{% endblock %}
  11. {% block blockbots %}
  12. <meta name="Robots" content="noindex, nofollow" /><meta name="Author" content="Piotr Tynecki, Paweł Topór" />
  13. {% endblock %}
  14. <style type="text/css">.module h2, .module caption, .inline-group h2 {
  15. background: url('/img/images/nav-bg.gif') repeat-x scroll left bottom #EEEEEE;
  16. color: #666666;
  17. }
  18. </style>
  19. </head>
  20. {% load i18n %}
  21. <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
  22. <!-- Container -->
  23. <div id="container">
  24. {% if not is_popup %}
  25. <!-- Header -->
  26. <div id="header">
  27. <div id="branding">
  28. {% block branding %}{% endblock %}
  29. </div>
  30. {% if user.is_active and user.is_staff %}
  31. <div id="user-tools" style="padding-top: 21px;">
  32. {% trans "Logged: " %}
  33. <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
  34. {% block userlinks %}
  35. {% url django-admindocs-docroot as docsroot %}
  36. {% url admin:password_change as password_change_url %}
  37. {% if password_change_url %}
  38. <a href="{{ password_change_url }}">
  39. {% else %}
  40. <a href="{{ root_path }}password_change/">
  41. {% endif %}
  42. {% trans "Change password" %}</a> /
  43. {% url admin:logout as logout_url %}
  44. {% if logout_url %}
  45. <a href="{{ logout_url }}">
  46. {% else %}
  47. <a href="{{ root_path }}logout/">
  48. {% endif %}
  49. {% trans "Log out" %}</a>
  50. {% endblock %}
  51. </div>
  52. {% endif %}
  53. {% block nav-global %}{% endblock %}
  54. </div>
  55. <!-- END Header -->
  56. {% block breadcrumbs %}
  57. <div class="breadcrumbs"><a href="/">{% trans "Home" %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>
  58. {% endblock %}
  59. {% endif %}
  60. {% if messages %}
  61. <ul class="messagelist">
  62. {% for message in messages %}
  63. <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  64. {% endfor %}
  65. </ul>
  66. {% endif %}
  67. <!-- Content -->
  68. <div id="content" class="{% block coltype %}colM{% endblock %}">
  69. {% block pretitle %}{% endblock %}
  70. {% block content_title %}
  71. {% if title %}
  72. <h1>PlushCMS v0.1.2 - Admin panel</h1>
  73. {% endif %}
  74. {% endblock %}
  75. {% block content %}
  76. {% block object-tools %}{% endblock %}
  77. {{ content }}
  78. {% endblock %}
  79. {% block sidebar %}{% endblock %}
  80. <br class="clear" />
  81. {% block rightblock %}{% endblock %}
  82. </div>
  83. <!-- END Content -->
  84. {% block footer %}{% endblock %}
  85. </div>
  86. <!-- END Container -->
  87. </body>
  88. </html>