From 49ffe0d0fa6395615cccf2fa74301b342240c80e Mon Sep 17 00:00:00 2001 From: Priyajit Mukherjee Date: Tue, 12 Nov 2019 14:18:44 +0530 Subject: [PATCH 1/2] Update _thumbnail.html.erb changed function "t" to "translation" on line 23 and 26. --- app/views/grids/_thumbnail.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/grids/_thumbnail.html.erb b/app/views/grids/_thumbnail.html.erb index c119787e0c..dd25a01293 100644 --- a/app/views/grids/_thumbnail.html.erb +++ b/app/views/grids/_thumbnail.html.erb @@ -20,10 +20,10 @@ <%= distance_of_time_in_words(node.created_at, Time.current, { include_seconds: false, scope:'datetime.time_ago_in_words' }) %> | <%= node.comments.size %> <% else %> - <%= t('notes._notes.last_edit_by') %> <%= node.latest.author.name %> + <%= translation('notes._notes.last_edit_by') %> <%= 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 %> - | <%= number_with_delimiter(node.views) %> <%= t('notes._notes.views') %> + | <%= number_with_delimiter(node.views) %> <%= translation('notes._notes.views') %> | <%= node.likes %> | <% if node.has_tag("pin:#{tagname}") %> <% end %>

From 1647ff57ca28dc389cb79b904d5f7950ad101a83 Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Tue, 19 Nov 2019 14:47:56 -0500 Subject: [PATCH 2/2] Update _card.html.erb --- app/views/notes/_card.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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? %>