Skip to content

Commit

Permalink
Minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea committed Oct 24, 2022
1 parent a618bc3 commit d030652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/works/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
<label class="form-check-label" for="flexSwitchCheckDefault">Show change history</label>
</div>
<% @work.activities.each do |activity| %>
<div class="activity-history-item <%= activity.activity_type == 'CHANGES' ? 'activity-history-log-item' : 'activity-history-comment-item' %>">
<div class="activity-history-item <%= activity.activity_type.in?(['CHANGES','FILE-CHANGES']) ? 'activity-history-log-item' : 'activity-history-comment-item' %>">
<div class="<%= activity.activity_type.in?(['CHANGES','FILE-CHANGES']) ? 'activity-history-log-title' : 'activity-history-comment-title' %>">
<b><%= activity.created_by_user&.display_name_safe %></b>
<span title="<%= activity.created_at.localtime %>"><%= distance_of_time_in_words_to_now(activity.created_at) %></span>
Expand Down

0 comments on commit d030652

Please sign in to comment.