diff --git a/app/assets/stylesheets/profile.css.scss b/app/assets/stylesheets/profile.css.scss index 74bb6a7..dc710df 100644 --- a/app/assets/stylesheets/profile.css.scss +++ b/app/assets/stylesheets/profile.css.scss @@ -74,3 +74,7 @@ margin: 0px; } } + +.user_avatar { + margin-bottom: 10px; +} diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index d341219..08c1976 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,12 +1,15 @@ <%= render partial: 'flash' %>
-

- <%= @user.nickname %> - <% if can? :edit, @user %> - <%= link_to content_tag(:small, content_tag(:span, "", class: "glyphicon glyphicon-cog")), edit_user_path(@user) %> - <% end %> -

+
+

+ <%= @user.nickname %> + <% if can? :edit, @user %> + <%= link_to content_tag(:small, content_tag(:span, "", class: "glyphicon glyphicon-cog")), edit_user_path(@user) %> + <% end %> +

+
+ <%= content_tag :div, image_tag(@user.avatar, class: "img-circle img-thumbnail center"), class: "user_avatar center" %>