PageRenderTime 28ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/django/contrib/admin/templates/admin/base.html

https://code.google.com/p/mango-py/
HTML | 82 lines | 68 code | 7 blank | 7 comment | 0 complexity | 9cf8b8f1013aa0ed018e6657b008cc11 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {% load url from future %}<!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|default:"en-us" }}" xml:lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% 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 %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
  12. </head>
  13. {% load i18n %}
  14. <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
  15. <!-- Container -->
  16. <div id="container">
  17. {% if not is_popup %}
  18. <!-- Header -->
  19. <div id="header">
  20. <div id="branding">
  21. {% block branding %}{% endblock %}
  22. </div>
  23. {% if user.is_active and user.is_staff %}
  24. <div id="user-tools">
  25. {% trans 'Welcome,' %}
  26. <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
  27. {% block userlinks %}
  28. {% url 'django-admindocs-docroot' as docsroot %}
  29. {% if docsroot %}
  30. <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
  31. {% endif %}
  32. {% url 'admin:password_change' as password_change_url %}
  33. {% if password_change_url %}
  34. <a href="{{ password_change_url }}">
  35. {% else %}
  36. <a href="{{ root_path }}password_change/">
  37. {% endif %}
  38. {% trans 'Change password' %}</a> /
  39. {% url 'admin:logout' as logout_url %}
  40. {% if logout_url %}
  41. <a href="{{ logout_url }}">
  42. {% else %}
  43. <a href="{{ root_path }}logout/">
  44. {% endif %}
  45. {% trans 'Log out' %}</a>
  46. {% endblock %}
  47. </div>
  48. {% endif %}
  49. {% block nav-global %}{% endblock %}
  50. </div>
  51. <!-- END Header -->
  52. {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
  53. {% endif %}
  54. {% if messages %}
  55. <ul class="messagelist">{% for message in messages %}
  56. <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
  57. {% endfor %}</ul>
  58. {% endif %}
  59. <!-- Content -->
  60. <div id="content" class="{% block coltype %}colM{% endblock %}">
  61. {% block pretitle %}{% endblock %}
  62. {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
  63. {% block content %}
  64. {% block object-tools %}{% endblock %}
  65. {{ content }}
  66. {% endblock %}
  67. {% block sidebar %}{% endblock %}
  68. <br class="clear" />
  69. </div>
  70. <!-- END Content -->
  71. {% block footer %}<div id="footer"></div>{% endblock %}
  72. </div>
  73. <!-- END Container -->
  74. </body>
  75. </html>