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 ff3631ae13266975d80c81f38a07355a7a7ef2fe Author: Dan Klco <[email protected]> AuthorDate: Mon Nov 18 03:37:32 2019 -0500 Adding publish state to the grid actions --- .../components/cms/contentgrid/contentgrid.jsp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/contentgrid/contentgrid.jsp b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/contentgrid/contentgrid.jsp index f00a883..afa41bd 100644 --- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/contentgrid/contentgrid.jsp +++ b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/contentgrid/contentgrid.jsp @@ -83,6 +83,23 @@ </c:otherwise> </c:choose> </c:forEach> + + <c:choose> + <c:when test="${sling:getRelativeResource(child,'jcr:content').valueMap.published}"> + <a class="button Fetch-Modal" href="/cms/shared/unpublish.html${child.path}" title="Content Published" data-title="Unpublish" data-path=".Main-Content form"> + <i class="jam jam-check"> + <span class="is-vhidden">Content Published</span> + </i> + </a> + </c:when> + <c:otherwise> + <a class="button Fetch-Modal" href="/cms/shared/publish.html${child.path}" title="Content Not Published" data-title="Publish" data-path=".Main-Content form"> + <i class="jam jam-close"> + <span class="is-vhidden">Content Not Published</span> + </i> + </a> + </c:otherwise> + </c:choose> </div> </div> <footer class="card-footer">
