不是自己的个人主页也显示top_view

This commit is contained in:
sw 2015-07-31 14:46:05 +08:00
parent f0552ad367
commit e2ec37026c
1 changed files with 0 additions and 2 deletions

View File

@ -1,6 +1,5 @@
<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg',"user" %>
<% @center_flag = (User.current == @user) %>
<% if @center_flag %>
<div class="top_new">
<span class="<%= (@user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true)) ? 'top_new_bg' : 'top_newcourses_bg'%> fl"></span>
<% if @user.allowed_to?(:add_project, nil, :global => true) %>
@ -17,7 +16,6 @@
<% end %>
<div class="cl"></div>
</div>
<% end %>
<div id="RSide" class="fl">