Skip to content

Commit

Permalink
Update t() function to translation()
Browse files Browse the repository at this point in the history
  • Loading branch information
gptshubham595 committed Nov 8, 2019
1 parent a720e67 commit 2355639
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/like/index.html.erb
@@ -1,14 +1,14 @@
<div class="col-lg-9">
<h1> <%= t('like.index.recent_likes') %> </h1>
<h1> <%= translation('like.index.recent_likes') %> </h1>
<% if logged_in_as(['admin', 'moderator']) %>
<p>Users marked in <b>red</b> are banned</p>
<% end %>
<table class="table">
<tr>
<th><%= t('like.index.user') %></th>
<th><%= t('like.index.liked') %></th>
<th><%= translation('like.index.user') %></th>
<th><%= translation('like.index.liked') %></th>
<% if logged_in_as(['admin', 'moderator']) %>
<th><%= t('like.index.action') %></th>
<th><%= translation('like.index.action') %></th>
<% end %>
</tr>
<% @likes.each do |like| %>
Expand All @@ -33,9 +33,9 @@
<b> - </b>
<% else %>
<% if like.user.status == 1 %>
<a data-confirm="<%= t('users.profile.confirm_ban_user') %>" href="/ban/<%= like.user.id %>" class="btn btn-outline-secondary"><i class="fa fa-ban"></i> <%= t('users.profile.ban_user') %></a>
<a data-confirm="<%= translation('users.profile.confirm_ban_user') %>" href="/ban/<%= like.user.id %>" class="btn btn-outline-secondary"><i class="fa fa-ban"></i> <%= translation('users.profile.ban_user') %></a>
<% else %>
<a href="/unban/<%= like.user.id %>" class="btn btn-outline-secondary"><i class="fa fa-thumbs-up"></i> <%= t('users.profile.unban_user') %></a>
<a href="/unban/<%= like.user.id %>" class="btn btn-outline-secondary"><i class="fa fa-thumbs-up"></i> <%= translation('users.profile.unban_user') %></a>
<% end %>
<% end %>
</td>
Expand Down

0 comments on commit 2355639

Please sign in to comment.