diff --git a/app/views/grids/_thumbnail.html.erb b/app/views/grids/_thumbnail.html.erb index e91f4ad5b2..fed81e92f1 100644 --- a/app/views/grids/_thumbnail.html.erb +++ b/app/views/grids/_thumbnail.html.erb @@ -1,3 +1,3 @@
<%= render partial: 'notes/notes', locals: { notes: nodes, unpaginated: true } %> -
+ \ No newline at end of file diff --git a/app/views/notes/_card.html.erb b/app/views/notes/_card.html.erb index 2a2e47450d..ffd4490d96 100644 --- a/app/views/notes/_card.html.erb +++ b/app/views/notes/_card.html.erb @@ -40,10 +40,10 @@ <% if node.type == 'note' %>
  • Made: <%= distance_of_time_in_words(node.created_at, Time.current, { include_seconds: false, scope:'datetime.time_ago_in_words' }) %>
  • <% else %> -
  • Last Edited: <%= t('notes._notes.last_edit_by') %> target="_blank"<% end %> href="/profile/<%= node.latest.author.name %>"><%= node.latest.author.name %>
  • +
  • Last Edited: <%= translation('notes._notes.last_edit_by') %> target="_blank"<% end %> href="/profile/<%= node.latest.author.name %>"><%= node.latest.author.name %>
  • <%= distance_of_time_in_words(Time.at(node.latest.timestamp), Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>
  • <% end %> -
  • Total Views: <%= number_with_delimiter(node.views) %> <%= t('notes._notes.views') %>
  • +
  • Total Views: <%= number_with_delimiter(node.views) %> <%= translation('notes._notes.views') %>
  • Total Likes: <%= node.likers.length %>
  • <% if @compact.nil? %>