From c53205a00d44937f9a1631889cc5779d92352eb0 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 7 Jun 2015 16:34:37 +0100 Subject: [PATCH] Show links for all bodies in footer Saves users having to drill down --- views/layout.haml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/views/layout.haml b/views/layout.haml index 6dc9aac..898682e 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -18,8 +18,11 @@ %h1 Sutton Elections %p %a{ :href => '/' } Home - %p - %a{ :href => '/bodies' } Bodies + - Body.each do |body| + %p + %a{ :href => "/bodies/#{body.slug}" } + = body.name + elections %p %a{ :href => '/candidates' } Candidates -#