start fixing comments dates

This commit is contained in:
zmagod 2016-10-03 16:10:20 +02:00
parent 91c7d8a952
commit 36fb2713b3
5 changed files with 5 additions and 4 deletions

View file

@ -63,6 +63,7 @@ var Comments = (function() {
moreBtn.trigger('blur');
}
debugger;
// Reposition dropdown comment options
scrollCommentOptions(listItem
.closest('.content-comments')

View file

@ -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 %>
<li class="comment-date-separator">
<p class="text-center"><%= comment.created_at.strftime('%d.%m.%Y') %></p>

View file

@ -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 %>
<li class="comment-date-separator">
<p class="text-center"><%= comment.created_at.strftime('%d.%m.%Y') %></p>

View file

@ -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 %>
<li class="comment-date-separator">
<p class="text-center"><%= comment.created_at.strftime('%d.%m.%Y') %></p>

View file

@ -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 %>
<li class="comment-date-separator">
<p class="text-center"><%= comment.created_at.strftime('%d.%m.%Y') %></p>