瀏覽代碼

Minor layout changes

tags/last-sinatra-version
Adrian Short 14 年之前
父節點
當前提交
6f7d4e9895
共有 2 個檔案被更改,包括 4 行新增3 行删除
  1. +1
    -0
      .gitignore
  2. +3
    -3
      views/home.haml

+ 1
- 0
.gitignore 查看文件

@@ -1,2 +1,3 @@
db.sqlite3
db.sqlite3.copy


+ 3
- 3
views/home.haml 查看文件

@@ -17,12 +17,13 @@
%th % Votes
%th Seats
%th % Seats
- for result in @results
%tr
%td= result[0]
%td.right= result[1]
%td.right= sprintf("%0.1f%%", result[1].to_f / @total_votes * 100)
-# Some pretty serious cheating going on here!
%td.right
- if result[0] == 'Conservative Party'
11
@@ -43,13 +44,12 @@
Total votes:
= @total_votes
%p All ward results are now available below.
%h2 Sutton Council ward results
- for ward in @wards
%p
%a{ :href=> "/results/sutton-council/2010-05-06/#{ward.slug}" }
= ward.name
Ward
-#
%h1
Vote for your MP and


Loading…
取消
儲存