From: <de...@de...> - 2011-05-01 22:46:14
|
Author: PeterThoeny Date: 2011-05-01 17:46:08 -0500 (Sun, 01 May 2011) New Revision: 21135 Trac url: http://develop.twiki.org/trac/changeset/21135 Modified: twiki/trunk/core/data/TWiki/SiteStatisticsTemplate.txt Log: Item6685: Site statistics feature - better conditional code using CALC to determine of a chart can be shown or not Modified: twiki/trunk/core/data/TWiki/SiteStatisticsTemplate.txt =================================================================== --- twiki/trunk/core/data/TWiki/SiteStatisticsTemplate.txt 2011-05-01 22:28:33 UTC (rev 21134) +++ twiki/trunk/core/data/TWiki/SiteStatisticsTemplate.txt 2011-05-01 22:46:08 UTC (rev 21135) @@ -1,9 +1,9 @@ -%META:TOPICINFO{author="TWikiContributor" date="1304288686" format="1.1" version="$Rev$"}% +%META:TOPICINFO{author="TWikiContributor" date="1304289712" format="1.1" version="$Rev$"}% ---+ TWiki Site Statistics %STARTSECTION{type="templateonly"}% __NOTE:__ This is a template topic, do not change. [[%SCRIPTURL{"statistics"}%/%USERSWEB%/SiteStatistics][Update the site statistics]]. %ENDSECTION{type="templateonly"}% -<div style="%IF{ "context ChartPluginEnabled AND (%SEARCH{ "^\| 2[0-9]" type="regex" topic="%TOPIC%" nonoise="on" multiple="on" reverse="on" format="1" separator="0" }%0 >= 10100)" then="display: block" else="display: none" }%"> +<div style="%IF{ "context ChartPluginEnabled AND (%CALC{$INT(%SEARCH{ "^\| 2[0-9]" type="regex" topic="%TOPIC%" nonoise="on" multiple="on" reverse="on" format="1" separator="+" }%+0)}% >= 2)" then="display: block" else="display: none" }%"> <table border="0" cellpadding="5"><tr> <td> %CHART{ %COMMON_CHART_PARAMS% name="ch2" data="R122:C2..R3:C2" title="Total Number of Webs" }%</td> |