Kaynağa Gözat

Fix revision layout

Thomas Rabaix 12 yıl önce
ebeveyn
işleme
6c97f0227b
1 değiştirilmiş dosya ile 22 ekleme ve 23 silme
  1. 22 23
      Resources/views/CRUD/base_history.html.twig

+ 22 - 23
Resources/views/CRUD/base_history.html.twig

@@ -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">