Explorar el Código

Disable polling stations page

tags/last-sinatra-version
Adrian Short hace 9 años
padre
commit
c7670d418b
Se han modificado 2 ficheros con 7 adiciones y 6 borrados
  1. +4
    -4
      app.rb
  2. +3
    -2
      views/layout.haml

+ 4
- 4
app.rb Ver fichero

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

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

not_found do
haml :not_found


+ 3
- 2
views/layout.haml Ver fichero

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


Cargando…
Cancelar
Guardar