From 8e329db4d8f8edff1d3ff3291e756a7af5736b9c Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 3 Aug 2016 15:16:28 +0800 Subject: [PATCH] =?UTF-8?q?pull=20request=20commits=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/pull_requests/_pull_request_commits.html.erb | 2 ++ app/views/pull_requests/show.html.erb | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/pull_requests/_pull_request_commits.html.erb b/app/views/pull_requests/_pull_request_commits.html.erb index cd6fb1f34..ffccccd8d 100644 --- a/app/views/pull_requests/_pull_request_commits.html.erb +++ b/app/views/pull_requests/_pull_request_commits.html.erb @@ -1,4 +1,5 @@ <% @commits.each do |commit| %> +
<%= format_date(commit.created_at) %> @@ -13,4 +14,5 @@
+
<% end %> diff --git a/app/views/pull_requests/show.html.erb b/app/views/pull_requests/show.html.erb index c7e52b8d5..634ed2916 100644 --- a/app/views/pull_requests/show.html.erb +++ b/app/views/pull_requests/show.html.erb @@ -16,13 +16,13 @@
  • <%= link_to "改动1".html_safe, pull_request_changes_project_pull_request_path(@request.id, :project_id => @project.id), :remote => true, :class => "active" %>
  • 根据最近提交时间排列
    -
    +
    <%= render :partial => "pull_requests/pull_request_commits" %>
    <% if @type == 2 %> -
    - <%= render :partial => "pull_requests/pull_request_changes" %> -
    +
    + <%= render :partial => "pull_requests/pull_request_changes" %> +
    <% end %>