{% for change in version.field_changes %}

	<button type="button" class="btn btn-default btn-xs" data-container="body" data-html="true" data-trigger='hover' data-toggle="popover" title='{% spaceless %}
        {% include "version_changes_change.html" %}
        {% endspaceless %}'>{{ change.field.verbose_name }}</button>

{% endfor %}

{% for itemChange in version.item_changes %}
    <button title="Changes to item '{% if itemChange.new %}{{ itemChange.new.name }}{% else %}{{ itemChange.old.name }}{% endif %}'" type="button" class="btn btn-default btn-xs" data-container="body" data-html="true" data-trigger='hover' data-toggle="popover" data-content='{% spaceless %}
        <ul class="list-group">
        {% for change in itemChange.changes %}
              <li class="list-group-item">
                <h4 class="list-group-item-heading">{{ change.field.verbose_name }}</h4>
                {% include "version_changes_change.html" %}
              </li>
        {% endfor %}
        </ul>

        {% endspaceless %}'>item '{% if itemChange.new %}{{ itemChange.new.name }}{% else %}{{ itemChange.old.name }}{% endif %}'</button>
{% endfor %}
