small fixes

This commit is contained in:
jomo
2013-06-24 14:17:27 +02:00
parent fb52e8bed2
commit b4f2dc5fab
7 changed files with 9 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
<%= link_to current_user.name.truncate(14), current_user %><br/>
<%= link_to "Logout", logout_path %>
</span>
<%= link_to image_tag(avatar_url(current_user.id), :class => "avatar size32"), current_user %>
<%= link_to image_tag(avatar_url(current_user.id, 32), :class => "avatar"), current_user %>
<% else %>
<%= link_to "Log in", login_path, :action => "new" %><br/>
<%= link_to "Register", register_path %>

View File

@@ -2,7 +2,7 @@
<%= simple_form_for @user do |f| %>
<%= f.input :name %>
<%= f.input :ign, label: "Ingame name" %>
<%= f.input :ign, label: "Exact ingame name" %>
<%= f.input :email %>
<%= f.input :password %>
<%= f.input :password_confirmation %>

View File

@@ -1,6 +1,6 @@
<div id="user-info">
<div id="edit_profile"><%= link_to "edit profile", edit_user_path(@user), :class => "btn-blue" %></div>
<%= image_tag avatar_url(@user.id), :class => "user-avatar avatar", :alt => "avatar" %><br/>
<%= image_tag avatar_url(@user.id, 128), :class => "user-avatar avatar", :alt => "avatar" %><br/>
<% if @user.banned %>
<span class="user-banned">This user is banned!</span>
<% end %>