restyling user's page

This commit is contained in:
Juanjo Bazán
2015-11-03 19:52:06 +01:00
committed by Juanjo Bazán
parent e8232f296e
commit fe0618e2c1
4 changed files with 29 additions and 18 deletions

View File

@@ -2,7 +2,10 @@
<% @comments.each do |comment| %>
<tr id="debate_<%= comment.id %>">
<td>
<i><%= t("users.show.comment_to") %> <%= link_to comment.commentable.title, comment.commentable %></i>
<i>
<%= t("users.show.comment_to") %>
<%= comment.commentable.hidden? ? comment.commentable.title : link_to(comment.commentable.title, comment.commentable) %>
</i>
<br>
<%= comment.body %>
</td>

View File

@@ -1,4 +1,8 @@
<h1><%= avatar_image(@user, seed: @user.id, size: 60) %> <%= @user.name %></h1>
<section role="main">
<div class="wrap row">
<div class="small-12 medium-9 column">
<h2><%= avatar_image(@user, seed: @user.id, size: 60) %> <%= @user.name %></h2>
<dl class="sub-nav">
<% @valid_filters.each do |filter| %>
@@ -15,3 +19,7 @@
</dl>
<%= render "activity_page" %>
</div>
</div>
</section>

View File

@@ -337,7 +337,7 @@ en:
one: "1 Comment"
other: "%{count} Comments"
no_activity: "User has no public activity"
comment_to: "Comment in "
comment_to: "Comment in: "
unauthorized:
default: "You do not have permission to access this page."
manage:

View File

@@ -337,7 +337,7 @@ es:
one: "1 Comentario"
other: "%{count} Comentarios"
no_activity: "Usuario sin actividad pública"
comment_to: "Comentario en "
comment_to: "Comentario en: "
unauthorized:
default: "No tienes permiso para acceder a esta página."
manage: