1{# Page: NavSecondary > Content ... > Recent modifications > view #}
2
3{% from 'changelog/_macros.twig' import changelog_details %}
4
5{% if context.prev_entry %}
6    {% set left_link = path(
7            'changelogrecordsingle',
8            {'contenttype': context.contenttype.slug, 'contentid': context.entry.contentid, 'id': context.prev_entry.id}
9       )
10    %}
11{% else %}
12    {% set left_link = false %}
13{% endif %}
14
15{% set centerLink = path(
16        'changelog',
17        {'contenttype': context.contenttype.slug, 'contentid': context.entry.contentid}
18   )
19%}
20
21{% if context.next_entry %}
22    {% set right_link = path(
23        'changelogrecordsingle',
24        {'contenttype': context.contenttype.slug, 'contentid': context.entry.contentid, 'id': context.next_entry.id}
25       )
26    %}
27{% else %}
28    {% set right_link = false %}
29{% endif %}
30
31{% extends '_base/_page-nav.twig' %}
32
33{% block page_nav 'Content/*' %}
34
35{% block page_title __('Change Log') %}
36
37{% block page_subtitle context.entry.title %}
38
39{% block page_main %}
40
41    <div class="row">
42        <div class="col-xs-12">
43            <ul class="pagination pagination-centered">
44                {% if left_link %}
45                    <li><a href="{{ left_link }}"><i style="font-weight: bold" class="fa fa-angle-left"></i></a></li>
46                {% else %}
47                    <li class="disabled"><span><i style="font-weight: bold" class="fa fa-angle-left"></i></span></li>
48                {% endif %}
49
50                <li>
51                    {% if centerLink %}
52                        <a href="{{ centerLink }}">{{ __('show all') }}</a>
53                    {% else %}
54                        <span>{{ __('show all') }}</span>
55                    {% endif %}
56                </li>
57
58                {% if right_link %}
59                    <li><a href="{{ right_link }}"><i style="font-weight: bold" class="fa fa-angle-right"></i></a></li>
60                {% else %}
61                    <li class="disabled"><span><i style="font-weight: bold" class="fa fa-angle-right"></i></span></li>
62                {% endif %}
63            </ul>
64            {{ changelog_details(context.entry) }}
65        </div>
66    </div>
67
68{% endblock page_main %}
69