cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/templates/base.html

88 lines
3.1 KiB
HTML
Raw Normal View History

2013-08-16 18:28:23 +04:00
{% raw %}{% load staticfiles i18n %}<!DOCTYPE html>
2013-08-19 17:42:43 +04:00
<html lang="en" ng-app>
<head>
<meta charset="utf-8">
<title>{% block title %}{% endraw %}{{ cookiecutter.project_name }}{% raw %}{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
2013-08-15 21:59:11 +04:00
{% block css %}
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
2013-08-20 12:56:49 +04:00
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css">
2013-08-15 21:59:11 +04:00
2013-08-16 20:23:22 +04:00
<!-- Your stuff: Third-party css libraries go here -->
<!-- This file store project specific CSS -->
2013-08-15 21:59:11 +04:00
<link href="{% static 'css/project.css' %}" rel="stylesheet">
{% endblock %}
2013-08-19 17:42:14 +04:00
{% block angular %}
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script>
2013-08-19 17:42:14 +04:00
{% endblock %}
</head>
<body>
2013-08-18 11:44:26 +04:00
<div class="header navbar">
<div class="container">
<a class="navbar-brand" href="/">{% endraw %}{{ cookiecutter.project_name }}{% raw %}</a>
2013-08-18 11:44:26 +04:00
<ul class="nav navbar-nav">
<li class="active"><a href="{% url 'home' %}">Home</a></li>
<li><a href="{% url 'about' %}">About</a></li>
2013-08-16 16:07:28 +04:00
2013-08-18 11:44:26 +04:00
{% if request.user.is_authenticated %}
<li><a href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a></li>
<li><a href="{% url 'account_logout' %}">{% trans "Logout" %}</a></li>
{% else %}
<li><a href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a></li>
<li><a href="{% url 'account_login' %}">{% trans "Log In" %}</a></li>
{% endif %}
</ul>
</div>
</div>
<div class="container">
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %}alert-{{ message.tags }}"{% endif %}>{{ message }}</div>
{% endfor %}
{% endif %}
2013-08-15 21:59:11 +04:00
{% block content %}
<p>Use this document as a way to quick start any new project.</p>
2013-08-15 21:59:11 +04:00
{% endblock content %}
</div> <!-- /container -->
2013-08-19 19:47:15 +04:00
{% block modal %}{% endblock modal %}
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
2013-08-15 21:59:11 +04:00
{% block javascript %}
2013-08-20 12:56:49 +04:00
<!-- Latest JQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
2013-08-20 12:56:49 +04:00
2013-08-15 21:59:11 +04:00
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
2013-08-16 20:23:22 +04:00
<!-- Your stuff: Third-party javascript libraries go here -->
2013-08-15 21:59:11 +04:00
<!-- place project specific Javascript in this file -->
<script src="{% static 'js/project.js' %}"></script>
{% endblock javascript %}
</body>
</html>
2013-08-19 17:42:14 +04:00
{% endraw %}