add main site base
This commit is contained in:
parent
237b89dcc8
commit
ea0eb44fcb
7 changed files with 5668 additions and 5619 deletions
0
src/c3nav/site/__init__.py
Normal file
0
src/c3nav/site/__init__.py
Normal file
35
src/c3nav/site/templates/site/base.html
Normal file
35
src/c3nav/site/templates/site/base.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
{% load static %}
|
||||
{% load compress %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>c3nav</title>
|
||||
{% compress css %}
|
||||
<link href="{% static 'bootstrap/css/bootstrap.css' %}" rel="stylesheet">
|
||||
{% endcompress %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-static-top navbar-default">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<a class="navbar-brand" href="{% url 'site.index' %}">c3nav</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container" id="main">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% compress js %}
|
||||
<script type="text/javascript" src="{% static 'jquery/jquery.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'bootstrap/js/bootstrap.js' %}"></script>
|
||||
{% endcompress %}
|
||||
</body>
|
||||
</html>
|
5
src/c3nav/site/templates/site/index.html
Normal file
5
src/c3nav/site/templates/site/index.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% extends 'site/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
Hi!
|
||||
{% endblock %}
|
6
src/c3nav/site/urls.py
Normal file
6
src/c3nav/site/urls.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.conf.urls import url
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', TemplateView.as_view(template_name='site/index.html'), name='site.index')
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue