This website works better with JavaScript.
首頁
探索
說明
登入
adrianshort
/
suttonelections
镜像来自
https://github.com/adrianshort/suttonelections.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
2
Wiki
Activity
瀏覽代碼
Delete /bodies page
The main nav links directly to each body detail page so the overview page is redundant
tags/last-sinatra-version
Adrian Short
8 年之前
父節點
c604d30929
當前提交
652d1b04ab
共有
3 個文件被更改
,包括
0 次插入
和
15 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-5
app.rb
+0
-6
views/bodies.haml
+0
-4
views/body.haml
+ 0
- 5
app.rb
查看文件
@@ -182,11 +182,6 @@ end
# Not written yet. Show how this party did at this election.
# end
get '/bodies/?' do
@bodies = Body.all
haml :bodies
end
get '/bodies/:body/?' do
@body = Body.first(:slug => params[:body])
@districts = District.all(:body => @body, :order => [:name])
+ 0
- 6
views/bodies.haml
查看文件
@@ -1,6 +0,0 @@
%h1= @page_title = "Government bodies"
- @bodies.each do |body|
%p
%a{ :href => "/bodies/#{body.slug}" }
= body.name
+ 0
- 4
views/body.haml
查看文件
@@ -1,7 +1,3 @@
%nav
%a{ :href => "/bodies" }
« Government bodies
%h1= @page_title = @body.name
%h2 Elections
Write
Preview
Loading…
取消
儲存