Skip to content

Commit

Permalink
Change t to translation (publiclab#8509)
Browse files Browse the repository at this point in the history
  • Loading branch information
ana-vela authored and Piyush Swain committed Oct 22, 2020
1 parent 038a16a commit 9e209d7
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 9e209d7

Please sign in to comment.