Tobias Jeger pushed to branch feature/cmng-psp1-CHANNELMGR-634 at cms-community 
/ hippo-addon-channel-manager


Commits:
4a6539dc by Tobias Jeger at 2016-05-27T13:57:43+02:00
CHANNELMGR-634 reword the new channel overview list column

- - - - -


3 changed files:

- 
frontend/src/main/java/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.java
- 
frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.properties
- 
frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelStore.properties


Changes:

=====================================
frontend/src/main/java/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.java
=====================================
--- 
a/frontend/src/main/java/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.java
+++ 
b/frontend/src/main/java/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.java
@@ -202,21 +202,14 @@ public class ChannelGridPanel extends ExtPanel {
     }
 
     private void createHstConfigEditorFieldConfig(final JSONObject 
fieldConfig) throws JSONException {
-        final String tooltip = 
getLocalizer().getString("tooltip.hstconfigeditor", this);
         final String labelAction = 
getLocalizer().getString("action.hstconfigeditor", this);
-        final String labelNotAvailable = 
getLocalizer().getString("action.hstconfigeditor.notavailable", this);
         fieldConfig.put("xtype", "templatecolumn");
 
         final StringBuilder templateBuilder = new StringBuilder();
         templateBuilder.append("<tpl if=\"previewHstConfigExists=='true'\">");
-        templateBuilder.append("<a href=\"#\" name=\"open-hstconfigeditor\" 
title=\"");
-        templateBuilder.append(tooltip);
-        templateBuilder.append("\">" + labelAction + "</a>");
-        templateBuilder.append("</tpl>");
-
-        // extjs 3.4 does not support 'else' operator in xtemplate
-        templateBuilder.append("<tpl if=\"previewHstConfigExists=='false'\">");
-        templateBuilder.append(labelNotAvailable);
+        templateBuilder.append("<a href=\"#\" name=\"open-hstconfigeditor\">");
+        templateBuilder.append(labelAction);
+        templateBuilder.append("</a>");
         templateBuilder.append("</tpl>");
 
         fieldConfig.put("tpl",  templateBuilder.toString());


=====================================
frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.properties
=====================================
--- 
a/frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.properties
+++ 
b/frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelGridPanel.properties
@@ -1,6 +1,5 @@
 action.add.channel=Add Channel
-action.hstconfigeditor=Open
-action.hstconfigeditor.notavailable=Not available
+action.hstconfigeditor=Edit configuration
 action.preview=Preview
 action.grouping=Grouping
 
@@ -16,7 +15,6 @@ menu.sort.descending=Sort Descending
 title=Channel Manager
 
 tooltip.name.prefix=Edit
-tooltip.hstconfigeditor=Open URL and Navigation Management
 tooltip.live=Open live channel
 tooltip.preview=Preview channel in new window
 


=====================================
frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelStore.properties
=====================================
--- 
a/frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelStore.properties
+++ 
b/frontend/src/main/resources/org/onehippo/cms7/channelmanager/channels/ChannelStore.properties
@@ -1,7 +1,7 @@
 field.composerModeEnabled=Composer Mode Enabled
 field.contentRoot=Content Root
 field.hostname=Host Name
-field.hstConfigEditor=URL and Navigation Management
+field.hstConfigEditor=
 field.hstConfigPath=Config Path
 field.hstMountPoint=Mount Point
 field.contextPath=Context Path



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/4a6539dc3e35775d6fa236aa17e238a595cfa940
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to