fixed members pulsbar

This commit is contained in:
2020-11-19 22:13:09 +01:00
parent 91efca62cd
commit 9d70193ebb
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ archetypeDir = "../kollegen-posts/archetypes"
category = "categories" category = "categories"
tag = "tags" tag = "tags"
sport = "sports" sport = "sports"
eventtype = "eventtypes" type = "types"
member = "members" member = "members"
location = "locations" location = "locations"
year = "years" year = "years"
+1 -5
View File
@@ -54,11 +54,7 @@ function onyearout(key){
{{ end }} {{ end }}
{{ $height := 0 }} {{ $height := 0 }}
{{ if gt $maxDist 0 }} {{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
{{ $height = mul (float $totalHeight ) ( div (float $dist ) ( float $maxDist ) ) }}
{{ else }}
{{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
{{ end }}
{{/* $maxDist */}} {{/* $maxDist */}}
{{/* $dist */}} {{/* $dist */}}
{{/* $x */}} {{/* $x */}}