From b93dbc0e63f8af1145bc31964bb8bf87ca194845 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 1 Aug 2016 23:15:24 +0100 Subject: [PATCH] Simplify visible nav text --- views/electionsummary.haml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/views/electionsummary.haml b/views/electionsummary.haml index 6582a0c..173cf9d 100644 --- a/views/electionsummary.haml +++ b/views/electionsummary.haml @@ -12,19 +12,19 @@ - unless @election_index == 0 - @previous_election = @elections_for_this_body[@election_index - 1] - %a{ :href => "/bodies/#{@election.body.slug}/elections/#{@previous_election.d}", :title => "Previous #{@election.body.name} election" }< + %a{ :href => "/bodies/#{@election.body.slug}/elections/#{@previous_election.d}", :title => "#{@previous_election.kind} #{short_date(@previous_election.d)}" }< « - = @previous_election.kind -   - = short_date(@previous_election.d) + Previous + = @election.body.name + election     - unless @election_index == @elections_for_this_body.size - 1 - @next_election = @elections_for_this_body[@election_index + 1] - %a{ :href => "/bodies/#{@election.body.slug}/elections/#{@next_election.d}", :title => "Next #{@election.body.name} election" }< - = @next_election.kind -   - = short_date(@next_election.d) + %a{ :href => "/bodies/#{@election.body.slug}/elections/#{@next_election.d}", :title => "#{@next_election.kind} #{short_date(@next_election.d)}" }< + Next + = @election.body.name + election » %h1