Skip to content

Commit

Permalink
Initial partial extracting
Browse files Browse the repository at this point in the history
  • Loading branch information
aitor committed Apr 18, 2010
1 parent a2c4eab commit a6e7878
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 19 deletions.
8 changes: 4 additions & 4 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<form class="initial_search" action="/untitled.jsp">
<label for="city_search">Ver presus de...</label>
<input id="city_search" autofocus type='text' placeholder='Esribe un municipio...'>
<button class="btn">Ver</button>
<form class="initial_search" action="/search">
<label for="city_search">Ver presus de...</label>
<input id="city_search" autofocus type='text' placeholder='Escribe un municipio...'>
<button class="btn">Ver</button>
</form>
4 changes: 3 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@

<body>
<!-- inside -->
<div class="inside">
<div class="inside">
<%= render :partial => 'shared/header' %>

<%= yield %>

<!-- footer -->
Expand Down
4 changes: 4 additions & 0 deletions app/views/municipios/compare.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% content_for :header_title do %>
<%= @muni.nombre %> y <%= @muni_b.nombre %>
<% end %>

<div style="float:left">
<h2>Muni A: <%= @muni.nombre %></h2>

Expand Down
17 changes: 3 additions & 14 deletions app/views/municipios/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
<!-- header -->
<div class="header">
<div class="title">
<h1><span>Los presupuestos de </span><%= @muni.nombre %></h1>
<p>Las cosas claras y el chocolate espeso</p>
</div>

<div class="budget">
<label for="municipality_go">Ver presus de...</label>
<input id="city_search" autofocus type='text' placeholder='Tu municipio...'>
<button class="btn">Ver</button>
</div>
</div>
<!-- /header -->
<% content_for :header_title do %>
<%= @muni.nombre %>
<% end %>

<!-- timeline -->
<div class="timeline">
Expand Down
14 changes: 14 additions & 0 deletions app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- header -->
<div class="header">
<div class="title">
<h1><span>Los presupuestos de </span> <%= yield :header_title %></h1>
<p>Las cosas claras y el chocolate espeso</p>
</div>

<div class="budget">
<label for="municipality_go">Ver presus de...</label>
<input id="city_search" autofocus type='text' placeholder='Tu municipio...'>
<button class="btn">Ver</button>
</div>
</div>
<!-- /header -->

0 comments on commit a6e7878

Please sign in to comment.