Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
adrianshort
/
suttonelections
espelho de
https://github.com/adrianshort/suttonelections.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
2
Wiki
Trabalho
Ver a proveniência
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
há 9 anos
ascendente
c604d30929
cometimento
652d1b04ab
3 ficheiros alterados
com
0 adições
e
15 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+0
-5
app.rb
+0
-6
views/bodies.haml
+0
-4
views/body.haml
+ 0
- 5
app.rb
Ver ficheiro
@@ -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
Ver ficheiro
@@ -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
Ver ficheiro
@@ -1,7 +1,3 @@
%nav
%a{ :href => "/bodies" }
« Government bodies
%h1= @page_title = @body.name
%h2 Elections
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar