本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
adrianshort
/
suttonelections
镜像来自
https://github.com/adrianshort/suttonelections.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
2
Wiki
活動
瀏覽代碼
Added ward list to home page
tags/last-sinatra-version
Adrian Short
14 年之前
父節點
a0e00023b7
當前提交
11f1a4f6d0
共有
2 個檔案被更改
,包括
10 行新增
和
3 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app.rb
+8
-3
views/home.haml
+ 2
- 0
app.rb
查看文件
@@ -23,6 +23,8 @@ get '/' do
redirect "/wards/#{@ward.slug}/postcode/#{@postcode}"
end
@wards = Ward.all
haml :home
end
+ 8
- 3
views/home.haml
查看文件
@@ -10,9 +10,14 @@
%h2 Sutton Council Election Results
%p
Votes for the Sutton Council election will be counted during the day on Friday 7 May. Results will appear here as soon as they are available.
%p Results for Worcester Park Ward are still awaited.
- for ward in @wards
- if ward.id != 18
%p
%a{ :href=> "/results/sutton-council/2010-05-06/#{ward.slug}" }
= ward.name
Ward
-#
%h1
Vote for your MP and
Write
Preview
Loading…
取消
儲存