Created
April 22, 2012 16:11
-
-
Save luizkowalski/2464996 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class=span6> | |
<div> | |
<h2>Seus dados</h2> | |
</div> | |
<table class="table table-bordered table-striped"> | |
<tr> | |
<th>Nome</th> | |
<th>E-mail</th> | |
</tr> | |
<tr> | |
<td><%=current_user.nome %></td> | |
<td><%=current_user.email %></td> | |
<td><%= link_to 'Editar', edit_user_registration_path(current_user) %></td> | |
</tr> | |
</table> | |
</div> | |
<div class=span6> | |
<div> | |
<h2>Ultimos usuário</h2> | |
</div> | |
<table class="table table-bordered table-striped"> | |
<tr> | |
<th>Nome</th> | |
<th>E-mail</th> | |
<th>Data de criação</th> | |
</tr> | |
<!-- all(sort: [[ :created_at, :desc ]]) --> | |
<% @users.each do |user| %> | |
<tr> | |
<td><%= user.nome %></td> | |
<td><%= user.email %></td> | |
<td><%= time_ago_in_words(user.created_at)%></td> | |
</tr> | |
<% end %> | |
</table> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="span12"> | |
<span><h2>Funções</h2></span> | |
<table class="table table-bordered table-striped"> | |
<tr> | |
<td><%= link_to('Criar um evento', new_evento_path) %></td> | |
</tr> | |
</table> | |
</div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment