From 4b429fafbacf9baff667f7da65526cba51b4dbc1 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 7 May 2010 22:12:25 +0100 Subject: [PATCH] Tidied up total vote counts --- public/style.css | 5 +++++ views/home.haml | 13 ++++++++----- views/resultssuttoncouncil.haml | 13 +++++++++---- views/resultsukparliament.haml | 13 +++++++++---- 4 files changed, 31 insertions(+), 13 deletions(-) diff --git a/public/style.css b/public/style.css index d1c4d5a..8d054e0 100644 --- a/public/style.css +++ b/public/style.css @@ -129,4 +129,9 @@ tr color: white; padding: 2px 2px; font-weight: normal; +} + +.noborder +{ + border: 0; } \ No newline at end of file diff --git a/views/home.haml b/views/home.haml index 49dc668..af63a34 100644 --- a/views/home.haml +++ b/views/home.haml @@ -40,11 +40,14 @@ 0% %td.right= result[1] %td.right= sprintf("%0.1f%%", result[1].to_f / @total_votes * 100) - - - %p - Total votes: - = @total_votes + + %tr.noborder + %td + %td + %td.right 54 + %td + %td.right.strong= @total_votes + %td %h2 Sutton Council Results by Ward diff --git a/views/resultssuttoncouncil.haml b/views/resultssuttoncouncil.haml index b5de808..f84cb18 100644 --- a/views/resultssuttoncouncil.haml +++ b/views/resultssuttoncouncil.haml @@ -44,7 +44,12 @@ %td - if count < 4 .elected ELECTED - - %p - Total votes: - = @total_2010 + + %tr.noborder + %td + %td + %td + %td= @total_2010 + %td + %td + %td diff --git a/views/resultsukparliament.haml b/views/resultsukparliament.haml index 7e964a6..8fc2d86 100644 --- a/views/resultsukparliament.haml +++ b/views/resultsukparliament.haml @@ -46,7 +46,12 @@ %td - if count == 1 .elected ELECTED - - %p - Total votes: - = @total_2010 + + %tr.noborder + %td + %td + %td + %td= @total_2010 + %td + %td + %td