Fix formatting in federation.tpl

This commit is contained in:
Hypolite Petovan 2018-01-18 11:24:56 -05:00
parent b963e7cc38
commit 910fda2383

View file

@ -6,7 +6,7 @@
{{if not $autoactive}} {{if not $autoactive}}
<p class="error-message">{{$hint}}</p> <p class="error-message">{{$hint}}</p>
{{/if}} {{/if}}
<p>{{$legendtext}} <p>{{$legendtext}}</p>
<ul> <ul>
{{foreach $counts as $c}} {{foreach $counts as $c}}
{{if $c[0]['total'] > 0}} {{if $c[0]['total'] > 0}}
@ -14,7 +14,6 @@
{{/if}} {{/if}}
{{/foreach}} {{/foreach}}
</ul> </ul>
</p>
</div> </div>
<script> <script>
var FedData = { var FedData = {
@ -102,7 +101,14 @@ var myDoughnutChart = new Chart(ctx, {
</script> </script>
<ul class="federation-stats"> <ul class="federation-stats">
{{foreach $c[1] as $v}} {{foreach $c[1] as $v}}
<li>{{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}<span class="version-match">{{$v['version']}}</span>{{else}}{{$v['version']}}{{/if}} ({{$v['total']}})</li> <li>
{{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }}
<span class="version-match">{{$v['version']}}</span>
{{else}}
{{$v['version']}}
{{/if}}
({{$v['total']}})
</li>
{{/foreach}} {{/foreach}}
</ul> </ul>
</td> </td>