2016-09-27 22:19:31 +08:00
|
|
|
<% day = 0 %>
|
2017-01-12 22:06:12 +08:00
|
|
|
<% current_day = days_since_1970(DateTime.current) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
|
|
|
<% comments.each do |comment| %>
|
2017-01-12 22:06:12 +08:00
|
|
|
<% comment_day = days_since_1970(comment.created_at) %>
|
2016-10-03 22:10:20 +08:00
|
|
|
<% if comment_day <= current_day && comment_day > day %>
|
2017-01-12 22:06:12 +08:00
|
|
|
<% day = days_since_1970(comment.created_at) %>
|
2016-08-25 16:26:40 +08:00
|
|
|
<li class="comment-date-separator">
|
|
|
|
<p class="text-center"><%= comment.created_at.strftime('%d.%m.%Y') %></p>
|
|
|
|
</li>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
2016-08-25 16:26:40 +08:00
|
|
|
<li class="comment">
|
|
|
|
<%= render 'step_comments/comment.html.erb', comment: comment %>
|
|
|
|
</li>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|