Browse Source

Disable polling stations page

tags/last-sinatra-version
Adrian Short 9 years ago
parent
commit
c7670d418b
2 changed files with 7 additions and 6 deletions
  1. +4
    -4
      app.rb
  2. +3
    -2
      views/layout.haml

+ 4
- 4
app.rb View File

@@ -328,10 +328,10 @@ end
# haml :aliens # haml :aliens
# end # end


get '/polling-stations' do
@stations = PollingStation.all
haml :pollingstations
end
# get '/polling-stations' do
# @stations = PollingStation.all
# haml :pollingstations
# end


not_found do not_found do
haml :not_found haml :not_found


+ 3
- 2
views/layout.haml View File

@@ -22,8 +22,9 @@
%a{ :href => '/bodies' } Bodies %a{ :href => '/bodies' } Bodies
%p %p
%a{ :href => '/candidates' } Candidates %a{ :href => '/candidates' } Candidates
%p
%a{ :href => '/polling-stations' } Polling stations
-#
%p
%a{ :href => '/polling-stations' } Polling stations
%p %p
%a{ :href => '/how-the-parliament-election-works' } How parliamentary elections work %a{ :href => '/how-the-parliament-election-works' } How parliamentary elections work
%p %p


Loading…
Cancel
Save