diff --git a/app/views/users/_course_message.html.erb b/app/views/users/_course_message.html.erb index 114852a06..395afea53 100644 --- a/app/views/users/_course_message.html.erb +++ b/app/views/users/_course_message.html.erb @@ -49,7 +49,7 @@
<% count=0 %> -
回复( +
回复( <% if activity.parent %> <% count=activity.parent.children.count%> <% else %> @@ -67,7 +67,7 @@ <% end %>
-
+
<%= form_for('new_form',:url => {:controller=>'messages',:action => 'reply', :id => activity.id, :board_id => activity.board_id, :is_board => 'true'},:method => "post", :remote => true) do |f|%> diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb index 54c1fd51d..f92b4e6b2 100644 --- a/app/views/users/_course_news.html.erb +++ b/app/views/users/_course_news.html.erb @@ -27,7 +27,7 @@
<% count=activity.comments.count %> -
+
回复(<%= count %>)
<%#= format_date(activity.updated_on) %>
@@ -40,7 +40,7 @@ <% end %>
-
+
<%= form_for('new_form',:url => {:controller => 'comments', :action => 'create', :id => activity},:method => "post", :remote => true) do |f|%> diff --git a/app/views/users/_project_issue.html.erb b/app/views/users/_project_issue.html.erb index 0413d6811..afe7560be 100644 --- a/app/views/users/_project_issue.html.erb +++ b/app/views/users/_project_issue.html.erb @@ -67,7 +67,7 @@
<% count = activity.journals.count %> -
回复(<%= count %>)
+
回复(<%= count %>)
<%#= format_date(activity.updated_on) %>
<% if count > 2 %>
@@ -78,7 +78,7 @@ <% end %>
-
+
<%= form_for('new_form',:url => add_journal_issue_path(activity.id),:method => "post", :remote => true) do |f|%> diff --git a/app/views/users/_project_message.html.erb b/app/views/users/_project_message.html.erb index ac96ee562..918a11bb2 100644 --- a/app/views/users/_project_message.html.erb +++ b/app/views/users/_project_message.html.erb @@ -39,7 +39,7 @@
<% count = 0 %> -
回复( +
回复( <% if activity.parent %> <% count=activity.parent.children.count%> <% else %> @@ -53,7 +53,7 @@ <% end %>
-
+
<%= form_for('new_form',:url => {:controller=>'messages',:action => 'reply', :id => activity.id, :board_id => activity.board_id, :is_board => 'true'},:method => "post", :remote => true) do |f|%> diff --git a/app/views/users/_user_activities.html.erb b/app/views/users/_user_activities.html.erb index 6955f5f69..443dbf3d5 100644 --- a/app/views/users/_user_activities.html.erb +++ b/app/views/users/_user_activities.html.erb @@ -10,6 +10,7 @@ div.ke-toolbar .ke-outline{border:none;} .ke-inline-block{display: none;} +<% first_user_activity = user_activities.first.id %> <% user_activities.each do |user_activity| if user_activities %>