不是自己的个人主页也显示top_view
This commit is contained in:
parent
f0552ad367
commit
e2ec37026c
|
@ -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">
|
||||
|
||||
|
|
Loading…
Reference in New Issue