Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
Yardım
Giriş Yap
adrianshort
/
suttonelections
şunun yansıması
https://github.com/adrianshort/suttonelections.git
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Sürümler
2
Wiki
Aktivite
Kaynağa Gözat
Added ward list to home page
tags/last-sinatra-version
Adrian Short
16 yıl önce
ebeveyn
a0e00023b7
işleme
11f1a4f6d0
2 değiştirilmiş dosya
ile
10 ekleme
ve
3 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+2
-0
app.rb
+8
-3
views/home.haml
+ 2
- 0
app.rb
Dosyayı Görüntüle
@@ -23,6 +23,8 @@ get '/' do
redirect "/wards/#{@ward.slug}/postcode/#{@postcode}"
end
@wards = Ward.all
haml :home
end
+ 8
- 3
views/home.haml
Dosyayı Görüntüle
@@ -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
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet