{% extends 'djiffy/page_detail.html' %}

{% block javascript %}
    {{ block.super }}
    {% include 'annotator_store/snippets/annotator_init.html' %}
{% endblock %}


{% extends 'djiffy/page_detail.html' %}

{% block css %}
<style type="text/css">
{# tweak some djiffy/annotator styles for display #}
.inner { display: inline-block; } {# match page image size exactly #}
.margin-container-show aside.margin-container { right: -5px;}
</style>
{% endblock %}

{% block javascript %}
    {{ block.super }}
    {# enable annotation functionality if user has appropriate permissions #}
    {% if perms.annotation.add_annotation %}
        {% include 'annotator_store/snippets/annotator_init.html' %}
    {% endif %}
{% endblock %}


Tweak page image layout; only enable annotation if user has permission
Tweak page image layout; only enable annotation if user has permission

* fix page container so it matches image size & image highlights
  display correctly
* tweak marinalia placement to display better on current layout
