Skip to content

Commit

Permalink
Merge pull request #349 from CTPUG/page-buttons
Browse files Browse the repository at this point in the history
Wrap page edit buttons in a clearfix div
  • Loading branch information
stefanor committed Mar 5, 2017
2 parents c305339 + ab9b05d commit c1ff7e1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions wafer/pages/templates/wafer.pages/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
{% block title %}{{ page.name }} - {{ WAFER_CONFERENCE_NAME }}{% endblock %}
{% block content %}
<div>
{{ page.content.rendered|safe }}
{% if perms.pages.change_page %}
<a href="{{ page.get_absolute_url }}?compare" class="float-right btn btn-secondary btn-lg">{% trans 'Compare to Previous version' %}</a>
<a href="{{ page.get_absolute_url }}?edit" class="float-right btn btn-secondary btn-lg">{% trans 'Edit' %}</a>
{% endif %}
{{ page.content.rendered|safe }}
{% if perms.pages.change_page %}
<div class="clearfix">
<a href="{{ page.get_absolute_url }}?compare"
class="float-right btn btn-secondary btn-lg"
>{% trans 'Compare to Previous version' %}</a>
<a href="{{ page.get_absolute_url }}?edit"
class="float-right btn btn-secondary btn-lg">{% trans 'Edit' %}</a>
</div>
{% endif %}
</div>
{% endblock %}

0 comments on commit c1ff7e1

Please sign in to comment.