You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2018/11/19 16:15:46 UTC

[sling-org-apache-sling-app-cms] 04/04: Wrapping the version table in a table-container div so it scrolls

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 8bc06db4776cb90cec7af8204a8384c94c5918e2
Author: Dan Klco <dk...@apache.org>
AuthorDate: Mon Nov 19 11:15:45 2018 -0500

    Wrapping the version table in a table-container div so it scrolls
---
 .../cms/versionmanager/versionmanager.jsp          | 94 +++++++++++-----------
 1 file changed, 48 insertions(+), 46 deletions(-)

diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/versionmanager/versionmanager.jsp b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/versionmanager/versionmanager.jsp
index df3c682..6b62413 100644
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/versionmanager/versionmanager.jsp
+++ b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/versionmanager/versionmanager.jsp
@@ -52,54 +52,56 @@
          </c:otherwise>
      </c:choose>
      <div class="version-container">
-        <table class="table" data-sort="false" data-paginate="false">
-            <thead>
-                <tr>
-                    <th>Version</th>
-                    <th>Created</th>
-                    <th>Successors</th>
-                    <th>Predecessors</th>
-                    <th>Restore</th>
-                </tr>
-            </thead>
-            <tbody class="load-versions">
-                <c:forEach var="version" items="${sling:adaptTo(slingRequest.requestPathInfo.suffixResource,'org.apache.sling.cms.core.models.VersionInfo').versions}" varStatus="status">
+        <div class="table-container">
+            <table class="table" data-sort="false" data-paginate="false">
+                <thead>
                     <tr>
-                        <td>
-                            ${version.name}
-                        </td>
-                        <td>
-                            <fmt:formatDate value="${version.created.time}" type="both"  dateStyle="long" timeStyle="long" />
-                        </td>
-                        <td>
-                            <c:forEach var="successor" items="${version.successors}">
-                                ${successor.name}<br/>
-                            </c:forEach>
-                        </td>
-                        <td>
-                            <c:forEach var="predecessor" items="${version.predecessors}">
-                                ${predecessor.name}<br/>
-                            </c:forEach>
-                        </td>
-                        <td>
-                            <c:if test="${!status.first}">
-                                <form method="post" action="${slingRequest.requestPathInfo.suffix}" enctype="multipart/form-data" class="Form-Ajax" data-add-date="false">
-                                    <fieldset class="form-wrapper field">
-                                        <input type="hidden" name=":operation" value="restore" />
-                                        <input type="hidden" name=":version" value="${version.name}" />
-                                        <div class="Field-Group">
-                                            <button type="submit" class="button" title="Restore the content to ${version.name}">
-                                                Restore Version
-                                            </button>
-                                        </div>
-                                    </fieldset>
-                                </form>
-                            </c:if>
-                        </td>
+                        <th>Version</th>
+                        <th>Created</th>
+                        <th>Successors</th>
+                        <th>Predecessors</th>
+                        <th>Restore</th>
                     </tr>
-                </c:forEach>
-            </tbody>
-        </table>
+                </thead>
+                <tbody class="load-versions">
+                    <c:forEach var="version" items="${sling:adaptTo(slingRequest.requestPathInfo.suffixResource,'org.apache.sling.cms.core.models.VersionInfo').versions}" varStatus="status">
+                        <tr>
+                            <td>
+                                ${version.name}
+                            </td>
+                            <td>
+                                <fmt:formatDate value="${version.created.time}" type="both"  dateStyle="long" timeStyle="long" />
+                            </td>
+                            <td>
+                                <c:forEach var="successor" items="${version.successors}">
+                                    ${successor.name}<br/>
+                                </c:forEach>
+                            </td>
+                            <td>
+                                <c:forEach var="predecessor" items="${version.predecessors}">
+                                    ${predecessor.name}<br/>
+                                </c:forEach>
+                            </td>
+                            <td>
+                                <c:if test="${!status.first}">
+                                    <form method="post" action="${slingRequest.requestPathInfo.suffix}" enctype="multipart/form-data" class="Form-Ajax" data-add-date="false">
+                                        <fieldset class="form-wrapper field">
+                                            <input type="hidden" name=":operation" value="restore" />
+                                            <input type="hidden" name=":version" value="${version.name}" />
+                                            <div class="Field-Group">
+                                                <button type="submit" class="button" title="Restore the content to ${version.name}">
+                                                    Restore Version
+                                                </button>
+                                            </div>
+                                        </fieldset>
+                                    </form>
+                                </c:if>
+                            </td>
+                        </tr>
+                    </c:forEach>
+                </tbody>
+            </table>
+        </div>
     </div>
  </div>
  
\ No newline at end of file