2017-08-29 15:55:15 +03:00
|
|
|
{% raw %}{% load static i18n {% endraw %}{% if cookiecutter.use_compressor == "y" %}compress{% endif %}{% raw %}%}<!DOCTYPE html>
|
2021-12-24 13:09:57 +03:00
|
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
|
|
<html lang="{{ LANGUAGE_CODE }}">
|
2013-08-14 22:01:41 +04:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2015-05-09 21:21:48 +03:00
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
2013-10-09 21:15:41 +04:00
|
|
|
<title>{% block title %}{% endraw %}{{ cookiecutter.project_name }}{% raw %}{% endblock title %}</title>
|
2013-08-14 22:01:41 +04:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2020-07-21 07:02:14 +03:00
|
|
|
<meta name="description" content="{% endraw %}{{ cookiecutter.description }}{% raw %}">
|
|
|
|
<meta name="author" content="{% endraw %}{{ cookiecutter.author_name }}{% raw %}">
|
2017-04-14 21:54:38 +03:00
|
|
|
|
2018-05-05 22:25:07 +03:00
|
|
|
<link rel="icon" href="{% static 'images/favicons/favicon.ico' %}">
|
|
|
|
|
2013-08-15 21:59:11 +04:00
|
|
|
{% block css %}
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.custom_bootstrap_compilation == "n" %}{% raw %}
|
2019-03-25 15:10:55 +03:00
|
|
|
<!-- Latest compiled and minified Bootstrap CSS -->
|
2021-11-16 23:29:43 +03:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" integrity="sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% endif %}{% raw %}
|
2013-08-15 21:59:11 +04:00
|
|
|
|
2016-08-04 02:03:43 +03:00
|
|
|
<!-- Your stuff: Third-party CSS libraries go here -->
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% compress css %}{% endraw %}{% endif %}{% raw %}
|
2016-08-04 02:03:43 +03:00
|
|
|
<!-- This file stores project-specific CSS -->
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.js_task_runner == "Gulp" and cookiecutter.use_compressor == "n" %}{% raw %}
|
2018-01-21 04:05:12 +03:00
|
|
|
<link href="{% static 'css/project.min.css' %}" rel="stylesheet">
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% else %}{% raw %}
|
2017-06-21 23:12:22 +03:00
|
|
|
<link href="{% static 'css/project.css' %}" rel="stylesheet">
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% endif %}{% raw %}
|
|
|
|
{%- endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% endcompress %}{% endraw %}{% endif %}{% raw %}
|
2013-08-15 21:59:11 +04:00
|
|
|
{% endblock %}
|
2020-11-04 19:54:21 +03:00
|
|
|
<!-- Le javascript
|
|
|
|
================================================== -->
|
|
|
|
{# Placed at the top of the document so pages load faster with defer #}
|
|
|
|
{% block javascript %}
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.custom_bootstrap_compilation == "y" and cookiecutter.js_task_runner == "Gulp" %}{% raw %}
|
2020-11-04 19:54:21 +03:00
|
|
|
<!-- Vendor dependencies bundled as one file-->
|
2021-03-03 23:02:32 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% compress js %}{% endraw %}{% endif %}{% raw %}
|
2020-11-04 19:54:21 +03:00
|
|
|
<script defer src="{% static 'js/vendors.js' %}"></script>
|
2021-03-03 23:02:32 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% endcompress %}{% endraw %}{% endif %}{% raw %}
|
|
|
|
{%- endraw %}{% else %}{% raw %}
|
2021-07-27 08:10:18 +03:00
|
|
|
<!-- Bootstrap JS -->
|
2021-11-16 23:29:43 +03:00
|
|
|
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js" integrity="sha512-OvBgP9A2JBgiRad/mM36mkzXSXaJE9BEIENnVEmeZdITvwT09xnxLtT4twkCa8m/loMbPHsvPl0T8lRGVBwjlQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
2020-11-04 19:54:21 +03:00
|
|
|
<!-- Your stuff: Third-party javascript libraries go here -->
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% endif %}{% raw %}
|
2020-11-04 19:54:21 +03:00
|
|
|
|
|
|
|
<!-- place project specific Javascript in this file -->
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% compress js %}{% endraw %}{% endif %}{% raw %}
|
2020-11-04 19:54:21 +03:00
|
|
|
<script defer src="{% static 'js/project.js' %}"></script>
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}{% if cookiecutter.use_compressor == "y" %}{% raw %}{% endcompress %}{% endraw %}{% endif %}{% raw %}
|
2020-11-04 19:54:21 +03:00
|
|
|
|
|
|
|
{% endblock javascript %}
|
2013-08-14 22:01:41 +04:00
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2015-10-25 04:31:36 +03:00
|
|
|
|
2018-11-30 08:12:08 +03:00
|
|
|
<div class="mb-1">
|
2017-09-05 15:21:25 +03:00
|
|
|
<nav class="navbar navbar-expand-md navbar-light bg-light">
|
2021-11-12 00:08:44 +03:00
|
|
|
<div class="container-fluid">
|
|
|
|
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="{% url 'home' %}">{% endraw %}{{ cookiecutter.project_name }}{% raw %}</a>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item active">
|
|
|
|
<a class="nav-link" href="{% url 'home' %}">Home <span class="visually-hidden">(current)</span></a>
|
2017-04-21 01:18:30 +03:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2021-11-12 00:08:44 +03:00
|
|
|
<a class="nav-link" href="{% url 'about' %}">About</a>
|
2017-04-21 01:18:30 +03:00
|
|
|
</li>
|
2021-11-12 00:08:44 +03:00
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<li class="nav-item">
|
|
|
|
{# URL provided by django-allauth/account/urls.py #}
|
|
|
|
<a class="nav-link" href="{% url 'users:detail' request.user.username %}">{% translate "My Profile" %}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
{# URL provided by django-allauth/account/urls.py #}
|
|
|
|
<a class="nav-link" href="{% url 'account_logout' %}">{% translate "Sign Out" %}</a>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
2021-12-27 14:37:33 +03:00
|
|
|
{% if ACCOUNT_ALLOW_REGISTRATION %}
|
|
|
|
<li class="nav-item">
|
|
|
|
{# URL provided by django-allauth/account/urls.py #}
|
|
|
|
<a id="sign-up-link" class="nav-link" href="{% url 'account_signup' %}">{% translate "Sign Up" %}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2021-11-12 00:08:44 +03:00
|
|
|
<li class="nav-item">
|
|
|
|
{# URL provided by django-allauth/account/urls.py #}
|
|
|
|
<a id="log-in-link" class="nav-link" href="{% url 'account_login' %}">{% translate "Sign In" %}</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-07-14 05:26:40 +03:00
|
|
|
</div>
|
2015-08-31 01:41:46 +03:00
|
|
|
</nav>
|
2017-04-21 01:18:30 +03:00
|
|
|
|
2015-08-31 01:41:46 +03:00
|
|
|
</div>
|
2013-08-14 22:01:41 +04:00
|
|
|
|
2015-07-15 21:08:49 +03:00
|
|
|
<div class="container">
|
2015-05-09 20:40:32 +03:00
|
|
|
|
2013-11-12 19:58:28 +04:00
|
|
|
{% if messages %}
|
2021-11-12 02:01:14 +03:00
|
|
|
{% for message in messages %}
|
|
|
|
<div class="alert alert-dismissible {% if message.tags %}alert-{{ message.tags }}{% endif %}">
|
|
|
|
{{ message }}
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2013-11-12 19:58:28 +04:00
|
|
|
{% endif %}
|
2016-09-12 01:22:21 +03:00
|
|
|
|
2013-08-15 21:59:11 +04:00
|
|
|
{% block content %}
|
2013-08-14 22:01:41 +04:00
|
|
|
<p>Use this document as a way to quick start any new project.</p>
|
2013-08-15 21:59:11 +04:00
|
|
|
{% endblock content %}
|
2013-08-14 22:01:41 +04:00
|
|
|
|
|
|
|
</div> <!-- /container -->
|
2015-05-09 20:40:32 +03:00
|
|
|
|
2013-08-19 19:47:15 +04:00
|
|
|
{% block modal %}{% endblock modal %}
|
2013-08-14 22:01:41 +04:00
|
|
|
|
2020-11-04 19:54:21 +03:00
|
|
|
{% block inline_javascript %}
|
2021-07-27 08:10:18 +03:00
|
|
|
{% comment %}
|
|
|
|
Script tags with only code, no src (defer by default). To run
|
2022-01-04 20:49:40 +03:00
|
|
|
with a "defer" so that you run inline code:
|
2021-07-27 08:10:18 +03:00
|
|
|
<script>
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {/* Run whatever you want */});
|
|
|
|
</script>
|
|
|
|
{% endcomment %}
|
2020-11-04 19:54:21 +03:00
|
|
|
{% endblock inline_javascript %}
|
2013-08-14 22:01:41 +04:00
|
|
|
</body>
|
|
|
|
</html>
|
2021-03-03 01:50:28 +03:00
|
|
|
{%- endraw %}
|