Skip to content

Commit

Permalink
Changed from function t to translation (#6609)
Browse files Browse the repository at this point in the history
Issue resolved: Change function t to translation in dashboard/_node_comment #6600
  • Loading branch information
ajitsinghkaler authored and SidharthBansal committed Nov 3, 2019
1 parent b0601f7 commit cd49bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/dashboard/_node_comment.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<p class="meta">
<a href="/profile/<%= node.author.name %>"><%= node.author.name %></a> <%= node.author.new_contributor %>
<span><%= t('dashboard._node_comment.commented_on') %></span> <% unless node.aid == 0 %> an answer about<% end %> <% if node.parent.has_power_tag('question') %><a href="<%= node.parent.path(:question) %>"><% else %><a href="<%= node.parent.path %>"><% end %><%= node.parent.title %></a>
<span><%= translation('dashboard._node_comment.commented_on') %></span> <% unless node.aid == 0 %> an answer about<% end %> <% if node.parent.has_power_tag('question') %><a href="<%= node.parent.path(:question) %>"><% else %><a href="<%= node.parent.path %>"><% end %><%= node.parent.title %></a>
<%= distance_of_time_in_words(node.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>
</p>
<%= render partial: 'dashboard/comment_moderate', locals: { comment: node } %>
Expand Down

0 comments on commit cd49bd4

Please sign in to comment.