diff --git a/htdocs/templates2/ocstyle/res_userstats.tpl b/htdocs/templates2/ocstyle/res_userstats.tpl index 29460d0f..5be04584 100644 --- a/htdocs/templates2/ocstyle/res_userstats.tpl +++ b/htdocs/templates2/ocstyle/res_userstats.tpl @@ -14,15 +14,19 @@ {if $show_statistics==true} - - {t}... by cache type{/t}: - -
- {include file="res_cachetypestats.tpl" stat=$hidden_by_cachetype total=$hidden logs=false} -
- - - + {if $hidden_by_cachetype|@count} + + {t}... by cache type{/t}: + +
+ {include file="res_cachetypestats.tpl" stat=$hidden_by_cachetype total=$hidden logs=false} +
+ + + {/if} + {if $hidden_by_cachetype|@count || $found_by_cachetype|@count} + + {/if} {/if} @@ -37,37 +41,41 @@ {if $show_statistics==true} - - {t}... by cache type{/t}: - -
- {include file="res_cachetypestats.tpl" stat=$found_by_cachetype total=$found logs=true} -
- - + {if $found_by_cachetype|@count} + + {t}... by cache type{/t}: + +
+ {include file="res_cachetypestats.tpl" stat=$found_by_cachetype total=$found logs=true} +
+ + - - - {t}... by region{/t}: - - - - {foreach from=$regionstat item=region name=regions} - - - - - {/foreach} -
- {$region.count}   - - {if !$region.state}{$region.country}{else}{$region.country}{/if} - {if $region.state}> {$region.state}{/if} -   -
- - - + + + {t}... by region{/t}: + + + + {foreach from=$regionstat item=region name=regions} + + + + + {/foreach} +
+ {$region.count}   + + {if !$region.state}{$region.country}{else}{$region.country}{/if} + {if $region.state}> {$region.state}{/if} +   +
+ + + {/if} + {if $hidden_by_cachetype|@count || $found_by_cachetype|@count} + + {/if}