From e9055dd11343e713e45486455d66e882dc28c32f Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Mon, 12 Oct 2015 10:34:30 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E5=8F=91=E5=B8=83=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=BC=95=E5=85=A5=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=8C=E5=88=86=E9=A1=B5=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=AD=E7=9A=84=E6=96=87=E5=AD=97=E8=A2=AB=E9=81=AE?= =?UTF-8?q?=E6=8C=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_show_user_resource.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_show_user_resource.html.erb b/app/views/users/_show_user_resource.html.erb index 929cea75b..855f30071 100644 --- a/app/views/users/_show_user_resource.html.erb +++ b/app/views/users/_show_user_resource.html.erb @@ -54,7 +54,7 @@ <%= render :partial => 'resources_list' ,:locals=>{ :attachments => @attachments} %>
-
From 590a2480ba38a06c01c8d97b812314cc8eeb3509 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Mon, 12 Oct 2015 10:49:07 +0800 Subject: [PATCH 02/16] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E4=B8=8D=E8=A6=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=85=A8=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/_tag_yun.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/files/_tag_yun.html.erb b/app/views/files/_tag_yun.html.erb index 4889e538d..41ae5f335 100644 --- a/app/views/files/_tag_yun.html.erb +++ b/app/views/files/_tag_yun.html.erb @@ -1,6 +1,6 @@ -<% if course %> +<% if course && tag_list.empty? == false%> - 全部 <% end %> From 155dff7e27a7d8039d45f85ea899db953b4d3799 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Mon, 12 Oct 2015 15:08:01 +0800 Subject: [PATCH 03/16] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=AF=B9=E5=BA=94=E7=9A=84=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- .../users/_selector_for_messages.html.erb | 48 ++++++++++-------- public/images/homepage_icon.png | Bin 11972 -> 16534 bytes public/stylesheets/new_user.css | 9 ++++ 4 files changed, 36 insertions(+), 23 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 055c59f06..c4a46abc1 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -121,7 +121,7 @@ class UsersController < ApplicationController messages = MessageAll.where("user_id =?", @user).order("created_at desc") messages.each do |message_all| # 在点击或者刷新消息列表后未读的消息存放在数组 - if message_all.message_type != "SystemMessage" && message_all.message.viewed == 0 + if message_all.message_type != "SystemMessage"&& !message_all.message.nil? && message_all.message.viewed == 0 @message_alls << message_all.message end end diff --git a/app/views/users/_selector_for_messages.html.erb b/app/views/users/_selector_for_messages.html.erb index 0bffdca2b..e7884fc60 100644 --- a/app/views/users/_selector_for_messages.html.erb +++ b/app/views/users/_selector_for_messages.html.erb @@ -2,35 +2,39 @@
<%= title_for_message(params[:type]) %>