Added blocks header and footer to the main layout, also container div is now inside the content block, so it's optional

This commit is contained in:
Felipe Martín 2013-05-30 11:49:51 +02:00
parent 46244b9add
commit 718c3729f6
10 changed files with 139 additions and 118 deletions

View File

@ -1,6 +1,7 @@
{% extends "layout.html" %}
{% block content %}
<div class="container">
<h1>Blog</h1>
{% for item in page.object_list %}
<hr />
@ -30,4 +31,5 @@
</ul>
</div>
{% endif %}
</div>
{% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "layout.html" %}
{% block content %}
<div class="container">
<p><a href="{{ url('blog_list') }}"><i class="icon-arrow-left"></i> Go back</a></p>
<article class="blog-entry">
<h1>{{ item.title }}</h1>
@ -13,4 +14,5 @@
{{ item.content|safe }}
</div>
</article>
</div>
{% endblock %}

View File

@ -5,6 +5,7 @@
{% endblock %}
{% block content %}
<div class="container">
<h1>About</h1>
<!-- PROJECT SECTION -->
<h2>The project</h1>
@ -71,4 +72,5 @@
</div>
#}
</div>
</div>
{% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "layout.html" %}
{% block content %}
<div class="container">
<h1>Blocks</h1>
<hr />
<div class="row-fluid">
@ -70,4 +71,5 @@
{% endfor %}
</ul>
</div>
</div>
{% endblock %}

View File

@ -9,6 +9,7 @@
{% endblock %}
{% block content %}
<div class="container">
<div class="row-fluid">
<div class="span9">
<h1>{{ item.name() }}</h1>
@ -39,4 +40,5 @@
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "layout.html" %}
{% block content %}
<div class="container">
<h1>Items</h1>
<hr />
<div class="row-fluid">
@ -70,4 +71,5 @@
{% endfor %}
</ul>
</div>
</div>
{% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "layout.html" %}
{% block content %}
<div class="container">
<div class="row-fluid">
<div class="span9">
<h1>{{ item.name() }}</h1>
@ -24,4 +25,5 @@
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -31,6 +31,7 @@ Thank you!
<title>{% block head_title %}{{ site_title }}{% endblock %}</title>
</head>
<body>
{% block header %}
<div class="alert alert-info margin-none text-center">
<strong>
Lack of information?
@ -81,10 +82,11 @@ Thank you!
</div><!-- /navbar-inner -->
</div>
</header>
<div class="container">
{% block content %}
{% endblock %}
</div>
{% block content %}
<div class="container"></div>
{% endblock %}
{% block footer %}
<footer class="container-fluid">
<hr style="margin: 0" />
<div class="pull-left">
@ -103,7 +105,7 @@ Thank you!
</a>
</div>
</footer>
{% if google_analytics %}
{% if google_analytics and not user.is_authenticated() %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@ -114,5 +116,6 @@ Thank you!
ga('send', 'pageview');
</script>
{% endif %}
{% endblock %}
</body>
</html>

View File

@ -5,6 +5,7 @@
{% endblock %}
{% block content %}
<div class="container">
<h1>Minecraft versions</h1>
<hr />
<a href="/versions/"><i class="icon-arrow-left"></i> Go back</a>
@ -24,4 +25,5 @@
<h3>Changelog</h3>
<p>{{ version.changelog|nl2br }}</p>
{% endfor %}
</div>
{% endblock %}

View File

@ -5,6 +5,7 @@
{% endblock %}
{% block content %}
<div class="container">
<h1>Minecraft versions</h1>
<hr />
<table class="table table-condensed table-hover">
@ -58,4 +59,5 @@
{% endfor %}
</ul>
</div>
</div>
{% endblock %}