From 5f8f186c6afc0d8553ca19bc00eeb4367d914728 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Thu, 12 May 2011 06:52:35 -0700 Subject: Make the number of builds easier on the eyes --- views/project/index.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/project/index.tt b/views/project/index.tt index 8751d50..74f41e9 100644 --- a/views/project/index.tt +++ b/views/project/index.tt @@ -5,7 +5,9 @@
"<: $project.description :>"
:for $days -> $day { -

<: $day :> (<: $total_by_days[$day] :> build(s))

+ : my $total = $total_by_days[$day]; + : my $plural = $total > 1 ? 's' : ''; +

<: $day :> - <: $total_by_days[$day] :> build<: $plural :>

: if $~day == 0 {
: }else{ -- cgit v1.2.3