Skip to content
Browse files

do not display in /users/:name

  • Loading branch information...
1 parent b8fb3d3 commit afbf30585a08aba29afaf0e3dc304646a66f0a6b @HungYuHei committed
Showing with 2 additions and 5 deletions.
  1. +2 −5 app/views/users/_info.html.erb
View
7 app/views/users/_info.html.erb
@@ -7,11 +7,8 @@
<ul>
<li class="with_nbsp"><span>&nbsp;</span>第 <%= @user.id %><%= t("menu.users")%></li>
<li><span>ID:</span><strong><%= @user.login %></strong></li>
- <% if !@user.name.blank? %>
- <li><span>Name:</span><strong><%= @user.name %></strong></li>
- <% end %>
- <% if !@user.location.blank? %>
- <li><span><%= t("users.city")%>:</span><%= location_name_tag(@user.location) %></li>
+ <% if @user.location.present? %>
+ <li><span><%= t("users.city")%>:</span><%= location_name_tag(@user.location) %></li>
<% end %>
<li><span><%= t("users.join_time")%>:</span><%= render_user_join_time(@user) %></li>

0 comments on commit afbf305

Please sign in to comment.
Something went wrong with that request. Please try again.