diff --git a/app/assets/javascripts/comments.js b/app/assets/javascripts/comments.js index 930e28d33..bf4d5b41f 100644 --- a/app/assets/javascripts/comments.js +++ b/app/assets/javascripts/comments.js @@ -63,6 +63,7 @@ var Comments = (function() { moreBtn.trigger('blur'); } + debugger; // Reposition dropdown comment options scrollCommentOptions(listItem .closest('.content-comments') diff --git a/app/views/my_module_comments/_list.html.erb b/app/views/my_module_comments/_list.html.erb index ce19531aa..cf4076d1b 100644 --- a/app/views/my_module_comments/_list.html.erb +++ b/app/views/my_module_comments/_list.html.erb @@ -3,7 +3,7 @@ <% comments.each do |comment| %> <% comment_day = comment.created_at.strftime('%j').to_i %> - <% if comment_day < current_day && comment_day > day %> + <% if comment_day <= current_day && comment_day > day %> <% day = comment.created_at.strftime('%j').to_i %>
  • <%= comment.created_at.strftime('%d.%m.%Y') %>

    diff --git a/app/views/project_comments/_list.html.erb b/app/views/project_comments/_list.html.erb index 3caf28225..d40a3bdd3 100644 --- a/app/views/project_comments/_list.html.erb +++ b/app/views/project_comments/_list.html.erb @@ -2,7 +2,7 @@ <% current_day = DateTime.current.strftime('%j').to_i %> <% comments.each do |comment| %> <% comment_day = comment.created_at.strftime('%j').to_i %> - <% if comment_day < current_day && comment_day > day %> + <% if comment_day <= current_day && comment_day > day %> <% day = comment.created_at.strftime('%j').to_i %>
  • <%= comment.created_at.strftime('%d.%m.%Y') %>

    diff --git a/app/views/result_comments/_list.html.erb b/app/views/result_comments/_list.html.erb index 28953629a..3d4bd6e7d 100644 --- a/app/views/result_comments/_list.html.erb +++ b/app/views/result_comments/_list.html.erb @@ -3,7 +3,7 @@ <% comments.each do |comment| %> <% comment_day = comment.created_at.strftime('%j').to_i %> - <% if comment_day < current_day && comment_day > day %> + <% if comment_day <= current_day && comment_day > day %> <% day = comment.created_at.strftime('%j').to_i %>
  • <%= comment.created_at.strftime('%d.%m.%Y') %>

    diff --git a/app/views/step_comments/_list.html.erb b/app/views/step_comments/_list.html.erb index 13f7d773e..6dcb9e0ed 100644 --- a/app/views/step_comments/_list.html.erb +++ b/app/views/step_comments/_list.html.erb @@ -3,7 +3,7 @@ <% comments.each do |comment| %> <% comment_day = comment.created_at.strftime('%j').to_i %> - <% if comment_day < current_day && comment_day > day %> + <% if comment_day <= current_day && comment_day > day %> <% day = comment.created_at.strftime('%j').to_i %>
  • <%= comment.created_at.strftime('%d.%m.%Y') %>