Skip to content

Commit

Permalink
Update _related.html.erb (#7541)
Browse files Browse the repository at this point in the history
Changed t to translation
  • Loading branch information
priyanshbalyan authored Apr 2, 2020
1 parent 3c2be5a commit 8148f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/sidebar/_related.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@

<% responses = @node.responses if @node %>
<% if @node && responses.length > 0 %>
<%= render partial: 'sidebar/notes', locals: { notes: @node.responded_to, title: I18n.t('sidebar._related.response_to'), node: @node } %>
<%= render partial: 'sidebar/notes', locals: { notes: @node.responded_to, title: I18n.translation('sidebar._related.response_to'), node: @node } %>
<% end %>

<% if @node && @node.has_power_tag('response') %>
<%= render partial: 'sidebar/notes', locals: { notes: @node.responses, title: I18n.t('sidebar._related.responses_to_note'), node: @node } %>
<%= render partial: 'sidebar/notes', locals: { notes: @node.responses, title: I18n.translation('sidebar._related.responses_to_note'), node: @node } %>
<% end %>

<%= render partial: "sidebar/map" %>
Expand Down

0 comments on commit 8148f85

Please sign in to comment.