瀏覽代碼

Disable polling stations page

tags/last-sinatra-version
Adrian Short 9 年之前
父節點
當前提交
c7670d418b
共有 2 個文件被更改,包括 7 次插入6 次删除
  1. +4
    -4
      app.rb
  2. +3
    -2
      views/layout.haml

+ 4
- 4
app.rb 查看文件

@@ -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 查看文件

@@ -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


Loading…
取消
儲存