|
@@ -20,32 +20,31 @@ file that was distributed with this source code.
|
|
{% endblock %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
{% block content %}
|
|
- <div class="row">
|
|
|
|
- <div class="span5">
|
|
|
|
- <table class="table" id="revisions">
|
|
|
|
- <thead>
|
|
|
|
|
|
+
|
|
|
|
+ <div class="span5">
|
|
|
|
+ <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>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ {% for revision in revisions %}
|
|
<tr>
|
|
<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>
|
|
|
|
|
|
+ <td>{{ revision.rev}}</td>
|
|
|
|
+ <td>{{ revision.timestamp | date}}</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>
|
|
</tr>
|
|
</tr>
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- {% for revision in revisions %}
|
|
|
|
- <tr>
|
|
|
|
- <td>{{ revision.rev}}</td>
|
|
|
|
- <td>{{ revision.timestamp | date}}</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>
|
|
|
|
- </tr>
|
|
|
|
- {% endfor %}
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
- <div id="revision-detail" class="span7 revision-detail">
|
|
|
|
|
|
+ {% endfor %}
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <div id="revision-detail" class="span7 revision-detail">
|
|
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|