From bed46c050ff1512104cbd0154ed439d156338b2f Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 1 Aug 2015 15:04:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=AF=BE=E7=A8=8B=E3=80=81?=
=?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=AF=BE=E7=A8=8B=E3=80=81=E5=88=9B=E5=BB=BA?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=95=B0=E7=9A=84=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/layouts/base_users_new.html.erb | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/app/views/layouts/base_users_new.html.erb b/app/views/layouts/base_users_new.html.erb
index 33973b047..acd9c238e 100644
--- a/app/views/layouts/base_users_new.html.erb
+++ b/app/views/layouts/base_users_new.html.erb
@@ -171,11 +171,11 @@
- <% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
- <% if(get_create_course_count(@user)) == 0 %>
+ <% if @user.user_extensions && @user.user_extensions.identity == 0 %>
+ <% if(get_create_course_count(@user)) != 0 %>
- 创建课程 :
<% end %>
- <% if(get_homework_commons_count(@user)) == 0 %>
+ <% if(get_homework_commons_count(@user)) != 0 %>
- 发布作业 :
<% end %>
<% end %>
@@ -202,11 +202,11 @@
<% end %>
- <% if !@user.user_extensions.nil? && @user.user_extensions.identity == 0 %>
- <% if(get_create_course_count(@user)) == 0 %>
+ <% if @user.user_extensions && @user.user_extensions.identity == 0 %>
+ <% if(get_create_course_count(@user)) != 0 %>
- <%= get_create_course_count(@user) %>
<% end %>
- <% if(get_homework_commons_count(@user)) == 0 %>
+ <% if(get_homework_commons_count(@user)) != 0 %>
- <%= get_homework_commons_count(@user) %>
<% end %>
<% end %>