Password protection of admin pages, publish-switch and small fixes

This commit is contained in:
2017-05-24 12:09:02 +02:00
parent 149a5d4b24
commit c3b0ce9537
8 changed files with 67 additions and 30 deletions

View File

@@ -44,14 +44,14 @@
<div class="col-md-6 col-sm-12"> <!-- Content -->
<div class="panel panel-default">
<div class="panel-body">
<div class="panel-title"> <h2>{{ page.title }}</h2> </div>
<!-- <div class="panel-title"> <h2>{{ page.title }}</h2> </div> -->
{{ page.description | markdown }}
</div>
{% if page.endpoint %}
<div class="panel-footer">
{% if page.endpoint %}
<a href="mailto:order@designbyloven.se" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span>&nbsp;Beställ</a>
{% endif %}
</div>
{% endif %}
</div>
</div> <!-- Content -->
</div> <!-- Content row -->
@@ -75,6 +75,7 @@
{% else %}
<div class="row"> <!-- Subsection list !-->
{% for c in page.children %}
{% if c.published %}
<div class="col-xs-6 col-md-3">
<div class="thumbnail">
<div class="caption" style="padding: 0;">
@@ -83,6 +84,7 @@
<a href="{{ c.permalink }}"><img src="{{ c.thumbnail.thumbnail }}" class="img-responsive"></a>
</div>
</div>
{% endif %}
{% endfor %}
</div> <!-- Subsection list -->
{% endif %}