Skip to content

Commit

Permalink
Merge pull request #484 from razetime/develop
Browse files Browse the repository at this point in the history
Add history timestamp numbers
  • Loading branch information
ArtOfCode- authored May 2, 2021
2 parents 5374d9b + 3974e44 commit 680f2de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/post_history/post.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<%= render 'posts/type_agnostic', post: @post, show_category_tag: true, show_type_tag: true, last_activity: false %>
</div>

<% @history.each do |event| %>
<% @history.each.with_index do |event,index| %>
<details class="history-event">
<summary>
<strong><%= event.post_history_type.name.humanize %></strong>
<strong>#<%= @history.size - index %>: <%= event.post_history_type.name.humanize %></strong>
<span class="has-color-tertiary-600 history-meta">
<span>
by
Expand Down Expand Up @@ -35,4 +35,4 @@
<%= render 'diff', before: event.before_tags, after: event.after_tags, post: @post %>
<% end %>
</details>
<% end %>
<% end %>

0 comments on commit 680f2de

Please sign in to comment.