Skip to content

Commit

Permalink
change the function t to translation (#7041)
Browse files Browse the repository at this point in the history
change the function t to translation of app/views/users/_likes.html.erb  in reference to the issue no. #6880
  • Loading branch information
kushaggarwal authored and cesswairimu committed Dec 31, 2019
1 parent 9acb1d8 commit fd5683d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/users/likes.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
<% user = user || @user # allow overriding w/ local variable %>
<% if @wikis && @wikis.length > 0 %>
<h3 style="margin-top:0;"><%= t('users.likes.wiki_liked_by') %> <a href="/profile/<%= user.name %>"><%= user.name %></a></h3>
<h3 style="margin-top:0;"><%= translation('users.likes.wiki_liked_by') %> <a href="/profile/<%= user.name %>"><%= user.name %></a></h3>
<ul class="nav bullet">
<% @wikis.each do |wiki| %>
<% unless (!@node.nil? && wiki.nid == @node.nid) %>
<li><a href="<%= wiki.path %>"><i class="fa fa-book"></i> <%= wiki.title %></a> <small style="color:#888;">(<%= t('users.likes.updated') %>: <%= distance_of_time_in_words(wiki.updated_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>)</small></li>
<li><a href="<%= wiki.path %>"><i class="fa fa-book"></i> <%= wiki.title %></a> <small style="color:#888;">(<%= translation('users.likes.updated') %>: <%= distance_of_time_in_words(wiki.updated_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>)</small></li>
<% end %>
<% end %>
<% if params[:controller] == "search" %>
<li><a href="/tag/<%= params[:id] %>"><%= t('users.likes.more') %>...</a></li>
<li><a href="/tag/<%= params[:id] %>"><%= translation('users.likes.more') %>...</a></li>
<% end %>
</ul>
<% end %>
</div>
<div class="col-md-9">
<h3 style="margin-top:0;"><i class="fa fa-star-o"></i> <%= t('users.likes.liked_by') %> <a href="/profile/<%= user.name %>"><%= user.name %></a></h3>
<h3 style="margin-top:0;"><i class="fa fa-star-o"></i> <%= translation('users.likes.liked_by') %> <a href="/profile/<%= user.name %>"><%= user.name %></a></h3>
<hr />
<% if @notes && @notes.length == 0 %>
Expand Down

0 comments on commit fd5683d

Please sign in to comment.