From fc8a648d45854dbc84d47202ce8be19526038153 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 30 Jun 2017 17:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E4=B8=BB=E9=A1=B5=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=95=B0=E6=8D=AE=E6=97=B6=E4=B8=8D=E8=83=BD=E5=8F=AB?= =?UTF-8?q?=E2=80=9C=E5=BF=AB=E9=80=9F=E5=85=A5=E5=8F=A3=E2=80=9D=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E8=BF=98=E6=98=AF=E6=88=91=E7=9A=84=E5=AE=9E?= =?UTF-8?q?=E8=AE=AD=E3=80=81=E6=88=91=E7=9A=84=E8=AF=BE=E5=A0=82=EF=BC=8C?= =?UTF-8?q?=E4=B8=94=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E9=9C=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../users/_my_homepage_course_show.html.erb | 35 ++++++------------- .../users/_my_homepage_courses_list.html.erb | 7 +++- .../users/_my_homepage_shixuns_list.html.erb | 7 +++- app/views/users/show.html.erb | 13 ------- 4 files changed, 23 insertions(+), 39 deletions(-) diff --git a/app/views/users/_my_homepage_course_show.html.erb b/app/views/users/_my_homepage_course_show.html.erb index cb2c85fed..7a6e85114 100644 --- a/app/views/users/_my_homepage_course_show.html.erb +++ b/app/views/users/_my_homepage_course_show.html.erb @@ -1,25 +1,12 @@ -<% if @courses_count == 0 %> -
- 快速入口 -
-
-
- -

显示你常用的课堂社区、实训社区列表

-

你还没有参与任何社区

-
-
-<% else %> -
- <% str = current_user ? '' : 'TA的' %> - +
+ <% str = current_user ? '' : 'TA的' %> + -
- <%= render :partial => "my_homepage_courses_list" %> -
-
-<% end %> \ No newline at end of file +
+ <%= render :partial => "my_homepage_courses_list" %> +
+
diff --git a/app/views/users/_my_homepage_courses_list.html.erb b/app/views/users/_my_homepage_courses_list.html.erb index dde8aa1f1..07488d725 100644 --- a/app/views/users/_my_homepage_courses_list.html.erb +++ b/app/views/users/_my_homepage_courses_list.html.erb @@ -1,5 +1,10 @@ <% if @courses.blank? %> - <%= render :partial => "welcome/no_data" %> +
+
+ +

你还没有课堂哟,去课堂教学首页看看

+
+
<% else %>
<% @courses.each do |course| %> diff --git a/app/views/users/_my_homepage_shixuns_list.html.erb b/app/views/users/_my_homepage_shixuns_list.html.erb index f86c00491..f0dfcccb6 100644 --- a/app/views/users/_my_homepage_shixuns_list.html.erb +++ b/app/views/users/_my_homepage_shixuns_list.html.erb @@ -1,5 +1,10 @@ <% if @shixuns.blank? %> - <%= render :partial => "welcome/no_data" %> +
+
+ +

你还没有实训哟,去项目实训首页看看

+
+
<% else %>
<% @shixuns.each do |shixun| %> diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index d8363d491..ac5c003ec 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -179,18 +179,6 @@
--> - <% if @shixuns_count == 0 %> -
- 快速入口 -
-
-
- -

显示你常用的课堂社区、实训社区列表

-

你还没有参与任何社区

-
-
- <% else %>
<% str = current_user ? '' : 'TA的' %>
- <% end %>