このサイトはJavaScriptを使用しています
ホーム
エクスプローラー
ヘルプ
サインイン
adrianshort
/
suttonelections
ミラー元
https://github.com/adrianshort/suttonelections.git
ウォッチ
1
スター
0
フォーク
0
コード
課題
0
リリース
2
Wiki
アクティビティ
ソースを参照
Tidied up total vote counts
tags/last-sinatra-version
Adrian Short
16年前
親
4a3e8d5a6f
コミット
4b429fafba
4個のファイルの変更
、
31行の追加
、
13行の削除
分割表示
差分オプション
統計情報を表示
Patchファイルをダウンロード
Diffファイルをダウンロード
+5
-0
public/style.css
+8
-5
views/home.haml
+9
-4
views/resultssuttoncouncil.haml
+9
-4
views/resultsukparliament.haml
+ 5
- 0
public/style.css
ファイルの表示
@@ -129,4 +129,9 @@ tr
color: white;
padding: 2px 2px;
font-weight: normal;
}
.noborder
{
border: 0;
}
+ 8
- 5
views/home.haml
ファイルの表示
@@ -40,11 +40,14 @@
0%
%td.right= result[1]
%td.right= sprintf("%0.1f%%", result[1].to_f / @total_votes * 100)
%p
Total votes:
= @total_votes
%tr.noborder
%td
%td
%td.right 54
%td
%td.right.strong= @total_votes
%td
%h2 Sutton Council Results by Ward
+ 9
- 4
views/resultssuttoncouncil.haml
ファイルの表示
@@ -44,7 +44,12 @@
%td
- if count < 4
.elected ELECTED
%p
Total votes:
= @total_2010
%tr.noborder
%td
%td
%td
%td= @total_2010
%td
%td
%td
+ 9
- 4
views/resultsukparliament.haml
ファイルの表示
@@ -46,7 +46,12 @@
%td
- if count == 1
.elected ELECTED
%p
Total votes:
= @total_2010
%tr.noborder
%td
%td
%td
%td= @total_2010
%td
%td
%td
書き込み
プレビュー
読み込み中…
キャンセル
保存