Author: jleroux
Date: Tue Sep 8 13:17:36 2009
New Revision: 812498
URL:
http://svn.apache.org/viewvc?rev=812498&view=revLog:
A part of a pathc from Carsten Schinzer "Extend webtools:LabelManager" (
https://issues.apache.org/jira/browse/OFBIZ-2911) - OFBIZ-2911
This adds 3 labels counters
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl
ofbiz/trunk/framework/webtools/widget/Menus.xml
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl?rev=812498&r1=812497&r2=812498&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/labelmanager/ViewLabels.ftl Tue Sep 8 13:17:36 2009
@@ -48,10 +48,14 @@
<#if parameters.searchLabels?exists>
<#assign rowNum = "2">
<#assign rowNumber = 1>
+ <#assign totalLabels = 0>
+ <#assign missingLabels = 0>
+ <#assign existingLabels = 0>
<#assign previousKey = "">
<#list labelsList as labelList>
<#assign label = labels.get(labelList)>
<#assign labelKey = label.labelKey>
+ <#assign totalLabels = totalLabels + 1>
<#if references?exists>
<#assign referenceNum = 0>
<#assign reference = references.get(labelKey)?if_exists>
@@ -98,8 +102,10 @@
<#if showLocale>
<#if labelVal?has_content>
<td>${labelVal.getLabelValue()}</td>
+ <#assign existingLabels = existingLabels + 1>
<#else>
<td> </td>
+ <#assign missingLabels = missingLabels + 1>
</#if>
</#if>
</#list>
@@ -113,6 +119,18 @@
<#assign rowNumber = rowNumber + 1>
</#if>
</#list>
+ <tr class="header-row">
+ <td/>
+ <td>${uiLabelMap.WebtoolsLabelStatsTotal}: ${totalLabels}</td>
+ <td colspan="2">
+ ${uiLabelMap.WebtoolsLabelStatsExist}:<br/>
+ ${uiLabelMap.WebtoolsLabelStatsMissing}:
+ </td>
+ <td>
+ ${existingLabels}<br/>
+ ${missingLabels}
+ </td>
+ </tr>
</#if>
</table>
</div>
Modified: ofbiz/trunk/framework/webtools/widget/Menus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/widget/Menus.xml?rev=812498&r1=812497&r2=812498&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/widget/Menus.xml (original)
+++ ofbiz/trunk/framework/webtools/widget/Menus.xml Tue Sep 8 13:17:36 2009
@@ -30,6 +30,9 @@
<menu-item name="service" title="${uiLabelMap.WebtoolsServiceEngineTools}">
<link target="ServiceList"/>
</menu-item>
+ <menu-item name="labels" title="${uiLabelMap.WebtoolsLabelManager}">
+ <link target="SearchLabels"/>
+ </menu-item>
<menu-item name="logging" title="${uiLabelMap.WebtoolsLogging}">
<link target="LogView"/>
</menu-item>