clean templates
This commit is contained in:
parent
eea4028322
commit
a2b5196e75
6 changed files with 9 additions and 27 deletions
|
@ -1,5 +1,3 @@
|
||||||
{% load wagtailcore_tags %}
|
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
{% for item in value %}
|
{% for item in value %}
|
||||||
<li>{{ item }}</li>
|
<li>{{ item }}</li>
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
{% load wagtailcore_tags %}
|
|
||||||
|
|
||||||
<button class="btn btn-primary btn-block" type="button" data-toggle="collapse" data-target="#secret-block" aria-expanded="false" aria-controls="secret-block">
|
<button class="btn btn-primary btn-block" type="button" data-toggle="collapse" data-target="#secret-block" aria-expanded="false" aria-controls="secret-block">
|
||||||
Show Secret
|
Show Secret
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse" id="secret-block">
|
<div class="collapse" id="secret-block">
|
||||||
<div class="well">
|
<div class="well">
|
||||||
{{ value }}
|
{{ value|richtext }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load wagtailcore_tags wagtailimages_tags %}
|
{% load wagtailcore_tags %}
|
||||||
|
|
||||||
{% block body_class %}template-blogpage{% endblock %}
|
{% block body_class %}template-blogpage{% endblock %}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
<p class="text-right small">
|
<p class="text-right small">
|
||||||
Published: {{ page.date|datetime }}
|
Published: {{ page.date|datetime }}
|
||||||
</p>
|
</p>
|
||||||
{{ page.body|richtext }}
|
{% include_block page.body %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -5,16 +5,7 @@
|
||||||
{% block body_class %}template-indexpage{% endblock %}
|
{% block body_class %}template-indexpage{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section class="bg-primary">
|
{% include 'common/header.html' %}
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-8 col-lg-offset-2 text-center">
|
|
||||||
<h1 class="section-heading">{{ page.title }}</h1>
|
|
||||||
<hr class="light">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
{% if page.intro %}
|
{% if page.intro %}
|
||||||
<section>
|
<section>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
@ -6,9 +6,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include 'common/header' %}
|
{% include 'common/header' %}
|
||||||
<section>
|
<section class="container">
|
||||||
<div class="container">
|
{% include_block page.body %}
|
||||||
{{ page.body|richtext }}
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -8,21 +8,18 @@
|
||||||
{% include 'common/header.html' %}
|
{% include 'common/header.html' %}
|
||||||
<section>
|
<section>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p class="text-right small">
|
|
||||||
Updated: {{ page.date }}
|
|
||||||
</p>
|
|
||||||
{% include_block page.body %}
|
{% include_block page.body %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div class="container text-center">
|
<section class="text-center">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
{% if page.get_download_link %}
|
{% if page.get_download_link %}
|
||||||
<a class="btn btn-primary btn-xl" href="{{ page.get_download_link }}">Download {{ page.title }}</a>
|
<a class="btn btn-primary btn-xl" href="{{ page.get_download_link }}">Download {{ page.title }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.url %}
|
{% if page.url %}
|
||||||
<a class="btn btn-github btn-xl" href="{{ page.url }}"><i class="fa fa-github fa-lg"></i> View on Github</a>
|
<a class="btn btn-github btn-xl" href="{{ page.project_url }}"><i class="fa fa-github fa-lg"></i> View Project</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in a new issue