about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-05-12 06:52:35 -0700
committerJonathan "Duke" Leto <jonathan@leto.net>2011-05-12 06:52:35 -0700
commit5f8f186c6afc0d8553ca19bc00eeb4367d914728 (patch)
treeea7fdcfdce5b2dd9ed2d3367773c5ec4cbfd3dd8
parentAvoid getting an undef object back from Email::Stuff when CC: is empty (diff)
downloadjitterbug-5f8f186c6afc0d8553ca19bc00eeb4367d914728.tar.gz
Make the number of builds easier on the eyes
-rw-r--r--views/project/index.tt4
1 files changed, 3 insertions, 1 deletions
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 @@
     <div class="project_baseline"><strong>"<: $project.description :>"</strong></div>
 
     :for $days -> $day {
-      <h3 class="builds-day" id="builds-day-<: $day :>"><: $day :> (<: $total_by_days[$day] :> build(s))</h3>
+      : my $total  = $total_by_days[$day];
+      : my $plural = $total > 1 ? 's' : '';
+      <h3 class="builds-day" id="builds-day-<: $day :>"><: $day :> - <: $total_by_days[$day] :> build<: $plural :></h3>
       : if $~day == 0 {
         <div class="commits" id="commits-day-<: $day :>">
       : }else{