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>
|
||||
{% for item in value %}
|
||||
<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">
|
||||
Show Secret
|
||||
</button>
|
||||
<div class="collapse" id="secret-block">
|
||||
<div class="well">
|
||||
{{ value }}
|
||||
{{ value|richtext }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% load wagtailcore_tags wagtailimages_tags %}
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
{% block body_class %}template-blogpage{% endblock %}
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
|||
<p class="text-right small">
|
||||
Published: {{ page.date|datetime }}
|
||||
</p>
|
||||
{{ page.body|richtext }}
|
||||
{% include_block page.body %}
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
|
@ -5,16 +5,7 @@
|
|||
{% block body_class %}template-indexpage{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="bg-primary">
|
||||
<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>
|
||||
{% include 'common/header.html' %}
|
||||
{% if page.intro %}
|
||||
<section>
|
||||
<div class="container">
|
||||
|
|
|
@ -6,9 +6,7 @@
|
|||
|
||||
{% block content %}
|
||||
{% include 'common/header' %}
|
||||
<section>
|
||||
<div class="container">
|
||||
{{ page.body|richtext }}
|
||||
</div>
|
||||
<section class="container">
|
||||
{% include_block page.body %}
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
|
@ -8,21 +8,18 @@
|
|||
{% include 'common/header.html' %}
|
||||
<section>
|
||||
<div class="container">
|
||||
<p class="text-right small">
|
||||
Updated: {{ page.date }}
|
||||
</p>
|
||||
{% include_block page.body %}
|
||||
</div>
|
||||
</section>
|
||||
<div class="container text-center">
|
||||
<section class="text-center">
|
||||
<div class="btn-group">
|
||||
{% if page.get_download_link %}
|
||||
<a class="btn btn-primary btn-xl" href="{{ page.get_download_link }}">Download {{ page.title }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% 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 %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
Reference in a new issue