From 2a768cbd49c21e23c874ee9b2ef08df55f4f9635 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 28 Nov 2016 11:32:28 +0800 Subject: [PATCH 1/4] =?UTF-8?q?Innov=E7=94=A8=E6=88=B7=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=8A=A5500=EF=BC=8C=E5=B9=B6=E5=B0=86Pull?= =?UTF-8?q?=20request=E7=9A=84=E7=99=BB=E5=BD=95=E5=90=8D=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=A7=93=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_pull_requests_list.html.erb | 2 +- app/views/users/_user_message_course.html.erb | 69 +++++++++++++++---- app/views/users/_user_message_forge.html.erb | 4 +- ...elete_error_message_all_and_org_message.rb | 9 +++ 4 files changed, 66 insertions(+), 18 deletions(-) create mode 100644 db/migrate/20161128030405_delete_error_message_all_and_org_message.rb diff --git a/app/views/pull_requests/_pull_requests_list.html.erb b/app/views/pull_requests/_pull_requests_list.html.erb index 59cda2ec1..57a1874ca 100644 --- a/app/views/pull_requests/_pull_requests_list.html.erb +++ b/app/views/pull_requests/_pull_requests_list.html.erb @@ -12,7 +12,7 @@ <%= link_to "", project_pull_request_path(request.id, :project_id => @project.id), :class => "issues_icons_mes fr mr5 ml5" %>
-

由 <%= link_to request.author.try(:username), user_path(get_user_by_login_and(request.author.try(:username))), :class => "linkBlue2" %> 创建于<%= time_tag(request.created_at) %>前

+

由 <%= link_to User.find(request.author.id).try(:show_name), user_path(get_user_by_login_and(request.author.try(:username))), :class => "linkBlue2" %> 创建于<%= time_tag(request.created_at) %>前

<%= time_tag(request.updated_at) %>前更新

<%= @project.name+"/"+request.source_branch %>合并到<%= request.target_branch %>

diff --git a/app/views/users/_user_message_course.html.erb b/app/views/users/_user_message_course.html.erb index 159da2789..b1936e19b 100644 --- a/app/views/users/_user_message_course.html.erb +++ b/app/views/users/_user_message_course.html.erb @@ -28,8 +28,15 @@ <% end %> <% if ma.course_message_type == "Comment" && ma.course_message %>