Includes content for header

This commit is contained in:
Alberto García Cabeza
2015-07-27 21:19:46 +02:00
parent 0a1f50edd5
commit 1f3aa22571
2 changed files with 16 additions and 10 deletions

View File

@@ -1,14 +1,14 @@
<ul class="right">
<% if user_signed_in? %>
<li>
<%= link_to('Logout', destroy_user_session_path, method: :delete) %>
<%= link_to('Salir', destroy_user_session_path, method: :delete) %>
</li>
<% else %>
<li>
<%= link_to('Login', new_user_session_path) %>
<%= link_to('Entrar', new_user_session_path) %>
</li>
<li class="active">
<%#= link_to('Sign up', new_registration_path) %>
<%= link_to('Registrarse', new_user_registration_path) %>
</li>
<% end %>
</ul>

View File

@@ -13,12 +13,10 @@
<nav class="top-bar" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
<h1>
<%= link_to root_path do %>
<%= image_tag('header-logo-madrid.png', :class => 'left', :size => '96x96') %>
gobierno<strong>abierto</strong> | <span>Participación</span>
<% end %>
</h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
@@ -28,4 +26,12 @@
</section>
</nav>
</div>
<div class="row">
<div class="small-12 column text-center">
<h1>Estamos abriendo Madrid</h1>
<h2>Para que todos los madrileños decidamos que ciudad queremos tener.</h2>
<%= link_to 'Participa en los últimos debates e iniciativas', new_debate_path, :class => 'button radius' %>
</div>
</div>
</header>