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/10/30 04:09:58 UTC

[sling-org-apache-sling-app-cms] 04/05: Improving the spacing on the template editor

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 0c9492acbf39139c41b973033f2b5d95b0568dd9
Author: Dan Klco <dk...@apache.org>
AuthorDate: Tue Oct 30 00:09:17 2018 -0400

    Improving the spacing on the template editor
---
 .../cms/templateeditor/templateeditor.jsp          | 30 ++++++++++++++++------
 1 file changed, 22 insertions(+), 8 deletions(-)

diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/templateeditor.jsp b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/templateeditor.jsp
index dc281ed..bdb76b1 100644
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/templateeditor.jsp
+++ b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/templateeditor.jsp
@@ -16,16 +16,30 @@
  * specific language governing permissions and limitations
  * under the License.
  */ --%>
- <%@include file="/libs/sling-cms/global.jsp"%>
- 
-<a href="/cms/config/edit.html${slingRequest.requestPathInfo.suffixResource.parent.parent.path}">
-	&lt; Site Configuration
-</a>
- <br/>
+<%@include file="/libs/sling-cms/global.jsp"%>
+<nav class="breadcrumb" aria-label="breadcrumbs">
+    <c:set var="siteCfgResource" value="${slingRequest.requestPathInfo.suffixResource.parent.parent}" />
+    <c:set var="cfgResource" value="${siteCfgResource.parent}" />
+    <ul>
+        <li>
+            <a href="/cms/config/list.html${cfgResource.path}">
+                <sling:encode value="${cfgResource.valueMap['jcr:content/jcr:title']}" mode="HTML" default="${cfgResource.name}" />
+            </a>
+        </li>
+        <li>
+            <a href="/cms/config/edit.html${siteCfgResource.path}">
+                <sling:encode value="${siteCfgResource.valueMap['jcr:title']}" mode="HTML" default="${siteCfgResource.name}" />
+            </a>
+        </li>
+        <li class="is-active">
+            <a href="#">
+                <sling:encode value="${resource.valueMap['jcr:title']}" mode="HTML" />
+            </a>
+        </li>
+    </ul>
+</nav>
  <c:set var="cmsEditEnabled" value="true" scope="request" />
 <sling:call script="/libs/sling-cms/components/editor/scripts/init.jsp" />
-
 <sling:include path="${slingRequest.requestPathInfo.suffix}" resourceType="sling-cms/components/cms/templateeditor/config" />
-
 <sling:call script="/libs/sling-cms/components/editor/scripts/finalize.jsp" />
 <c:set var="cmsEditEnabled" value="false" scope="request" />
\ No newline at end of file