From 0141735db4b0e3adc87f2e605ee0f96058e7bedd Mon Sep 17 00:00:00 2001 From: cxt Date: Mon, 6 Mar 2017 11:03:33 +0800 Subject: [PATCH 01/15] =?UTF-8?q?=E9=97=AE=E5=90=A7=E5=B8=96=E5=AD=90?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E5=9B=9E=E5=A4=8D=E7=9A=84Url=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=B0=83=E6=95=B4=E4=B8=BA=E8=B6=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/_comment_reply_detail.html.erb | 8 +++++++- app/views/projects/_project_comment_reply_detail.html.erb | 8 +++++++- .../_project_issue_comments_reply_detail.html.erb | 8 +++++++- app/views/users/_comment_reply_detail.html.erb | 8 +++++++- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/app/views/projects/_comment_reply_detail.html.erb b/app/views/projects/_comment_reply_detail.html.erb index 9c29a8ae9..c85bfbdc1 100644 --- a/app/views/projects/_comment_reply_detail.html.erb +++ b/app/views/projects/_comment_reply_detail.html.erb @@ -1,10 +1,16 @@
<%= link_to image_tag(url_to_avatar(comment.creator_user), :width => "33", :height => "33"), user_path(comment.creator_user.id), :alt => "用户头像" %>
+
<%= link_to comment.creator_user.show_name, user_path(comment.creator_user.id), :class => "content-username" %> <%= time_from_now(comment.respond_to?(:created_on) ? comment.created_on : comment.created_at) %> -
+
<% if comment.class == Journal %> <% if comment.details.any? %> <% details_to_strings(comment.details).each do |string| %> diff --git a/app/views/projects/_project_comment_reply_detail.html.erb b/app/views/projects/_project_comment_reply_detail.html.erb index 70082dae4..590f62470 100644 --- a/app/views/projects/_project_comment_reply_detail.html.erb +++ b/app/views/projects/_project_comment_reply_detail.html.erb @@ -1,10 +1,16 @@
<%= link_to image_tag(url_to_avatar(comment.creator_user), :width => "33", :height => "33"), user_path(comment.creator_user.id), :alt => "用户头像" %>
+
<%= link_to comment.creator_user.show_name, user_path(comment.creator_user.id), :class => "content-username" %> <%= time_from_now(comment.respond_to?(:created_on) ? comment.created_on : comment.created_at) %> -
+
<% if comment.class == Journal %> <% if comment.details.any? %> <% details_to_strings(comment.details).each do |string| %> diff --git a/app/views/projects/_project_issue_comments_reply_detail.html.erb b/app/views/projects/_project_issue_comments_reply_detail.html.erb index e3a675fc5..49ce59ce9 100644 --- a/app/views/projects/_project_issue_comments_reply_detail.html.erb +++ b/app/views/projects/_project_issue_comments_reply_detail.html.erb @@ -1,10 +1,16 @@
<%= link_to image_tag(url_to_avatar(comment.creator_user), :width => "33", :height => "33"), user_path(comment.creator_user.id), :alt => "用户头像" %>
+
<%= link_to comment.creator_user.show_name, user_path(comment.creator_user.id), :class => "content-username" %> <%= time_from_now(comment.respond_to?(:created_on) ? comment.created_on : comment.created_at) %> -
+
<% if comment.class == Journal %> <% if comment.details.any? %> <% details_to_strings(comment.details).each do |string| %> diff --git a/app/views/users/_comment_reply_detail.html.erb b/app/views/users/_comment_reply_detail.html.erb index d36ad498c..e7cd7e0b0 100644 --- a/app/views/users/_comment_reply_detail.html.erb +++ b/app/views/users/_comment_reply_detail.html.erb @@ -1,10 +1,16 @@
<%= link_to image_tag(url_to_avatar(comment.creator_user), :width => "33", :height => "33"), user_path(comment.creator_user), :alt => "用户头像" %>
+
<%= link_to comment.creator_user.show_name, user_path(comment.creator_user), :class => "content-username" %> <%= time_from_now(comment.respond_to?(:created_on) ? comment.created_on : comment.created_at) %> -
+
<% if comment.class == Journal %> <% if comment.details.any? %> <% details_to_strings(comment.details).each do |string| %> From dd0cb87d4f4d89255cf7d46d3d9cc018021a9b26 Mon Sep 17 00:00:00 2001 From: cxt Date: Mon, 6 Mar 2017 11:19:51 +0800 Subject: [PATCH 02/15] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E8=AE=A8=E8=AE=BA?= =?UTF-8?q?=E5=8C=BA=E7=9A=84=E5=8A=A9=E6=95=99=E6=B2=A1=E6=9C=89=E5=B8=96?= =?UTF-8?q?=E5=AD=90=E7=BD=AE=E9=A1=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/boards/_course_new.html.erb | 18 ++++++++---------- app/views/boards/_course_show.html.erb | 6 ++++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/views/boards/_course_new.html.erb b/app/views/boards/_course_new.html.erb index 774d1c100..3ffc4f9b0 100644 --- a/app/views/boards/_course_new.html.erb +++ b/app/views/boards/_course_new.html.erb @@ -126,16 +126,14 @@