Mathijs den Burger pushed to branch feature/visual-editing-psp1 at 
cms-community / hippo-site-toolkit


Commits:
269a24a9 by Tobias Jeger at 2016-09-21T09:40:09+02:00
HSTTWO-3797 Revert changes to add holder info to edit content links

This reverts commit e938647266282318c4584bdef33920b110ba5639.
This reverts commit 6744c3d4c0dc5fd72a5fd222365b099bc7397437.

- - - - -


1 changed file:

- client/src/main/java/org/hippoecm/hst/tag/HstCmsEditLinkTag.java


Changes:

=====================================
client/src/main/java/org/hippoecm/hst/tag/HstCmsEditLinkTag.java
=====================================
--- a/client/src/main/java/org/hippoecm/hst/tag/HstCmsEditLinkTag.java
+++ b/client/src/main/java/org/hippoecm/hst/tag/HstCmsEditLinkTag.java
@@ -60,8 +60,6 @@ import static org.hippoecm.hst.utils.TagUtils.toJSONMap;
  * </ol>
  */
 public class HstCmsEditLinkTag extends TagSupport  {
-
-    private static int linkCounter = 0; // Temporary code for HSTTWO-3796
     
     private final static Logger log = 
LoggerFactory.getLogger(HstCmsEditLinkTag.class);
     
@@ -252,21 +250,6 @@ public class HstCmsEditLinkTag extends TagSupport  {
         result.put(ChannelManagerConstants.HST_TYPE, "CONTENT_LINK");
         result.put("uuid", nodeId);
         result.put("url", url);
-
-        // Temporary code for HSTTWO-3796
-        if (linkCounter % 2 == 0) {
-            String holder;
-            switch ((linkCounter/2) % 3) {
-                case 0: holder = "admin"; break;
-                case 1: holder = "editor"; break;
-                default: holder = "author"; break;
-            }
-            result.put("holderId", holder);
-            result.put("holderName", holder.substring(0, 1).toUpperCase() + 
holder.substring(1));
-        }
-        linkCounter++;
-        // end of temporary code
-
         return result;
     }
 



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-site-toolkit/commit/269a24a9650c4506dfe233bf7378340d181c5db4
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to