使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
adrianshort
/
gist-1579512
镜像自地址
https://gist.github.com/1579512.git
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
master
Adrian Short
12 年前
当前提交
5781ea5359
共有
1 个文件被更改
,包括
16 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+16
-0
gistfile1.haml
+ 16
- 0
gistfile1.haml
查看文件
@@ -0,0 +1,16 @@
- @last_date = ''
- @results.each do |row|
- if row.election_d != @last_date
- @last_date = row.election_d
%h2= row.election_d
%table
%tr
%td{ :style => "background-color: #{row.party_colour}" }
%td= row.party_name
%td= row.c_surname
%td= to_ordinal(row.position)
%td= commify(row.votes)
撰写
预览
正在加载...
取消
保存