Skip to content

Conversation

razetime
Copy link
Contributor

Fix for Issue #479.

<details class="history-event">
<summary>
<strong><%= event.post_history_type.name.humanize %></strong>
<strong>#<%= @history.size - index %>: <%= event.post_history_type.name.humanize %></strong>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity, why size - index instead of index +1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indices need to be reversed to be in chronological order, hence size - index.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, of course

@ArtOfCode- ArtOfCode- merged commit 680f2de into codidact:develop May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants