Skip to content

Commit

Permalink
Change t to translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ana-vela committed Oct 9, 2020
1 parent 5a2155a commit cede6f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/dashboard/_comment_moderate.html.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<% if comment.status == 4 %>
<p class="alert alert-warning moderated">
<% if logged_in_as(['admin','moderator']) %>
<%= t('dashboard._comment_moderate.first_time_post') %>
<a class="btn btn-outline-secondary btn-sm" href="/admin/publish_comment/<%= comment.id %>"><%= t('dashboard.moderate.approve') %></a>
<a class="btn btn-outline-secondary btn-sm" href="/admin/mark_comment_spam/<%= comment.id %>"><%= t('dashboard.moderate.spam') %></a>
<%= translation('dashboard._comment_moderate.first_time_post') %>
<a class="btn btn-outline-secondary btn-sm" href="/admin/publish_comment/<%= comment.id %>"><%= translation('dashboard.moderate.approve') %></a>
<a class="btn btn-outline-secondary btn-sm" href="/admin/mark_comment_spam/<%= comment.id %>"><%= translation('dashboard.moderate.spam') %></a>
<% else %>
<%= raw t('dashboard.moderate.pending_approval', :url => '/wiki/moderation') %>
<%= raw translation('dashboard.moderate.pending_approval', :url => '/wiki/moderation') %>
<% end %>
</p>
<% end %>

0 comments on commit cede6f4

Please sign in to comment.