Skip to content

Commit

Permalink
Change function t to translation in app/views/users/list.html.erb (#7748
Browse files Browse the repository at this point in the history
)
  • Loading branch information
B4Lee authored Mar 29, 2020
1 parent 0eb8a4b commit 5fbd630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<li><a href="/profile/<%= user.username %>">See Full Profile</a></li>
<% if current_user && (current_user.role == "admin" || current_user.role == "moderator") %>
<% if user.status == 0 %>
<i class='fa fa-ban' style="color:#a00;"></i> <%= t('users.list.banned') %>
<i class='fa fa-ban' style="color:#a00;"></i> <%= translation('users.list.banned') %>
<% elsif user.status == 1 && user != current_user %>
<li><a data-confirm="<%= translation('users.list.are_you_sure') %>" href="/ban/<%= user.uid %>" ><i class='fa fa-ban'></i> <%= translation('users.list.ban') %></a></li>
<% end %>
Expand Down

0 comments on commit 5fbd630

Please sign in to comment.