|
@@ -27,25 +27,27 @@ file that was distributed with this source code.
|
|
|
<table class="table" id="revisions">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th>{{ "td_revision"|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
- <th>{{ "td_timestamp"|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
- <th>{{ "td_username"|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
- <th>{{ "td_action"|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
- <th>{{ "td_compare"|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
+ <th>{{ 'td_revision'|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
+ <th>{{ 'td_timestamp'|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
+ <th>{{ 'td_username'|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
+ <th>{{ 'td_action'|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
+ <th>{{ 'td_compare'|trans({}, 'SonataAdminBundle') }}</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
{% for revision in revisions %}
|
|
|
<tr class="{% if (currentRevision != false and revision.rev == currentRevision.rev) %}current-revision{% endif %}">
|
|
|
- <td>{{ revision.rev}}</td>
|
|
|
+ <td>{{ revision.rev }}</td>
|
|
|
<td>{% include admin.getTemplate('history_revision_timestamp') %}</td>
|
|
|
- <td>{{ revision.username}}</td>
|
|
|
- <td><a href="{{ admin.generateObjectUrl('history_view_revision', object, {'revision': revision.rev }) }}" class="revision-link" rel="{{ revision.rev }}">{{ "label_view_revision"|trans({}, 'SonataAdminBundle') }}</a></td>
|
|
|
+ <td>{{ revision.username }}</td>
|
|
|
+ <td>
|
|
|
+ <a href="{{ admin.generateObjectUrl('history_view_revision', object, {'revision': revision.rev }) }}" class="revision-link" rel="{{ revision.rev }}">{{ 'label_view_revision'|trans({}, 'SonataAdminBundle') }}</a>
|
|
|
+ </td>
|
|
|
<td>
|
|
|
{% if (currentRevision == false or revision.rev == currentRevision.rev) %}
|
|
|
/
|
|
|
{% else %}
|
|
|
- <a href="{{ admin.generateObjectUrl('history_compare_revisions', object, {'base_revision': currentRevision.rev, 'compare_revision': revision.rev }) }}" class="revision-compare-link" rel="{{ revision.rev }}">{{ "label_compare_revision"|trans({}, 'SonataAdminBundle') }}</a>
|
|
|
+ <a href="{{ admin.generateObjectUrl('history_compare_revisions', object, {'base_revision': currentRevision.rev, 'compare_revision': revision.rev }) }}" class="revision-compare-link" rel="{{ revision.rev }}">{{ 'label_compare_revision'|trans({}, 'SonataAdminBundle') }}</a>
|
|
|
{% endif %}
|
|
|
</td>
|
|
|
</tr>
|