|
| 1 | +{% load i18n static %}<!DOCTYPE html> |
| 2 | +{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} |
| 3 | +<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" dir="{{ LANGUAGE_BIDI|yesno:'rtl,ltr,auto' }}"> |
| 4 | +<head> |
| 5 | +<title>{% block title %}{% endblock %}</title> |
| 6 | +<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}"> |
| 7 | +{% if not is_popup and is_nav_sidebar_enabled %} |
| 8 | + <link rel="stylesheet" type="text/css" href="{% static "admin/css/nav_sidebar.css" %}"> |
| 9 | + <script src="{% static 'admin/js/nav_sidebar.js' %}" defer></script> |
| 10 | +{% endif %} |
| 11 | +{% block extrastyle %}{% endblock %} |
| 12 | +{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}">{% endif %} |
| 13 | +{% block extrahead %}{% endblock %} |
| 14 | +{% block responsive %} |
| 15 | + <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"> |
| 16 | + <link rel="stylesheet" type="text/css" href="{% static "admin/css/responsive.css" %}"> |
| 17 | + {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% static "admin/css/responsive_rtl.css" %}">{% endif %} |
| 18 | +{% endblock %} |
| 19 | +{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE">{% endblock %} |
| 20 | +</head> |
| 21 | + |
| 22 | +<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}" |
| 23 | + data-admin-utc-offset="{% now "Z" %}"> |
| 24 | + |
| 25 | +<!-- Container --> |
| 26 | +<div id="container"> |
| 27 | + |
| 28 | + {% if not is_popup %} |
| 29 | + <!-- Header --> |
| 30 | + {% block header %} |
| 31 | + <div id="header"> |
| 32 | + <div id="branding"> |
| 33 | + {% block branding %}{% endblock %} |
| 34 | + </div> |
| 35 | + {% block usertools %} |
| 36 | + {% if has_permission %} |
| 37 | + <div id="user-tools"> |
| 38 | + {% block welcome-msg %} |
| 39 | + {% translate 'Welcome,' %} |
| 40 | + <strong>{% firstof user.get_short_name user.get_username %}</strong>. |
| 41 | + {% endblock %} |
| 42 | + {% block userlinks %} |
| 43 | + {% if site_url %} |
| 44 | + <a href="{{ site_url }}">{% translate 'View site' %}</a> / |
| 45 | + {% endif %} |
| 46 | + {% if user.is_active and user.is_staff %} |
| 47 | + {% url 'django-admindocs-docroot' as docsroot %} |
| 48 | + {% if docsroot %} |
| 49 | + <a href="{{ docsroot }}">{% translate 'Documentation' %}</a> / |
| 50 | + {% endif %} |
| 51 | + {% endif %} |
| 52 | + {% if user.has_usable_password %} |
| 53 | + <a href="{% url 'admin:password_change' %}">{% translate 'Change password' %}</a> / |
| 54 | + {% endif %} |
| 55 | + <a href="{% url 'admin:logout' %}">{% translate 'Log out' %}</a> |
| 56 | + {% endblock %} |
| 57 | + </div> |
| 58 | + {% endif %} |
| 59 | + {% endblock %} |
| 60 | + {% block nav-global %}{% endblock %} |
| 61 | + </div> |
| 62 | + {% endblock %} |
| 63 | + <!-- END Header --> |
| 64 | + {% block breadcrumbs %} |
| 65 | + <div class="breadcrumbs"> |
| 66 | + <a href="{% url 'admin:index' %}">{% translate 'Home' %}</a> |
| 67 | + {% if title %} › {{ title }}{% endif %} |
| 68 | + </div> |
| 69 | + {% endblock %} |
| 70 | + {% endif %} |
| 71 | + |
| 72 | + <div class="main" id="main"> |
| 73 | + {% if not is_popup and is_nav_sidebar_enabled %} |
| 74 | + {% block nav-sidebar %} |
| 75 | + {% include "admin/nav_sidebar.html" %} |
| 76 | + {% endblock %} |
| 77 | + {% endif %} |
| 78 | + <div class="content"> |
| 79 | + {% block messages %} |
| 80 | + {% if messages %} |
| 81 | + <ul class="messagelist">{% for message in messages %} |
| 82 | + <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|capfirst }}</li> |
| 83 | + {% endfor %}</ul> |
| 84 | + {% endif %} |
| 85 | + {% endblock messages %} |
| 86 | + <!-- Content --> |
| 87 | + <div id="content" class="{% block coltype %}colM{% endblock %}"> |
| 88 | + {% block pretitle %}{% endblock %} |
| 89 | + {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} |
| 90 | + {% block content_subtitle %}{% if subtitle %}<h2>{{ subtitle }}</h2>{% endif %}{% endblock %} |
| 91 | + {% block content %} |
| 92 | + {% block object-tools %}{% endblock %} |
| 93 | + {{ content }} |
| 94 | + {% endblock %} |
| 95 | + {% block sidebar %}{% endblock %} |
| 96 | + <br class="clear"> |
| 97 | + </div> |
| 98 | + <!-- END Content --> |
| 99 | + {% block footer %}<div id="footer"></div>{% endblock %} |
| 100 | + </div> |
| 101 | + </div> |
| 102 | +</div> |
| 103 | +<!-- END Container --> |
| 104 | +<footer> |
| 105 | + <a target="_blank" href="https://github.com/cividi/spatial-data-package-platform/releases/tag/{{CURRENT_TAG_VERSION}}">v{{CURRENT_TAG_VERSION}}</a> |
| 106 | + |
| 107 | + (<a target="_blank" href="https://github.com/cividi/spatial-data-package-platform/commit/{{CURRENT_COMMIT_VERSION}}">{{CURRENT_COMMIT_VERSION}}</a>) |
| 108 | +</footer> |
| 109 | +</body> |
| 110 | +</html> |
0 commit comments