From 836dd9b1dc93eeb9f01a016e2b28735f68e13eca Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Thu, 4 Jul 2019 14:31:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 4 +- app/views/projects/_act_issues.html.erb | 36 +----------------- app/views/projects/_act_messages.html.erb | 38 ------------------- .../projects/_project_activities.html.erb | 8 +--- 4 files changed, 4 insertions(+), 82 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 8078da87..5e01aa62 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -332,9 +332,7 @@ class ProjectsController < ApplicationController def show # 顶部导航 @project_menu_type = 1 - # 更新消息为已读 - update_message_status(User.current, @project) - # over + if params[:jump] && redirect_to_project_menu_item(@project, params[:jump]) return end diff --git a/app/views/projects/_act_issues.html.erb b/app/views/projects/_act_issues.html.erb index a2b2380a..0bb4d872 100644 --- a/app/views/projects/_act_issues.html.erb +++ b/app/views/projects/_act_issues.html.erb @@ -11,31 +11,7 @@ TO <%= link_to activity.project.name.to_s+" | 项目问题", project_issues_path(activity.project), :class => "color-orange05 ml15"%> - <% if User.current.logged? %> -
- -
- <% end %> +
【<%= get_issue_type_new(activity.tracker_id) %>】 @@ -61,9 +37,6 @@
- <%=render :partial =>"users/intro_content", :locals=>{:user_activity_id => user_activity_id, :content => activity.description} %> - -
<%# 局部刷新:修改xissue属性 %> <% if User.current.member_of?(activity.project) && !activity.nil? && !activity.status.nil? %> @@ -74,15 +47,10 @@ <% end %> <% end %>
-
- <%= render :partial=>"attachments/activity_attach", :locals=>{:activity => activity} %> -
-
- <%= render :partial => 'projects/project_issue_reply', :locals => {:activity => activity, :user_activity_id => user_activity_id} %> -
+