<div>
<small class="deemphasize">
<% if (comment.user) { %>
- <%= I18n.t('javascripts.notes.show.event', {
- action: comment.action, user: comment.user,
- user_url: comment.user_url, time: comment.date
+ <%= I18n.t('javascripts.notes.show.' + comment.action + '_by', {
+ user: comment.user, user_url: comment.user_url, time: comment.date
}) %>
<% } else { %>
- <%- I18n.t('javascripts.notes.show.anonymous_event', {
- action: comment.action, time: comment.date
+ <%- I18n.t('javascripts.notes.show.' + comment.action + '_by_anonymous', {
+ time: comment.date
}) %>
<% } %>
</small>
add: Add Note
show:
title: Note %{id}
- event: "%{action} by <a href='%{user_url}'>%{user}</a> at %{time}"
- anonymous_event: "%{action} by anonymous at %{time}"
+ opened_by: "created by <a href='%{user_url}'>%{user}</a> at %{time}"
+ opened_by_anonymous: "created by anonymous at %{time}"
+ commented_by: "comment from <a href='%{user_url}'>%{user}</a> at %{time}"
+ commented_by_anonymous: "comment from anonymous at %{time}"
+ closed_by: "resolved by <a href='%{user_url}'>%{user}</a> at %{time}"
+ closeded_by_anonymous: "resolved by anonymous at %{time}"
+ reopened_by: "reactivated by <a href='%{user_url}'>%{user}</a> at %{time}"
+ reopened_by_anonymous: "reactivated by anonymous at %{time}"
close: Close
comment_and_close: Comment & Close
comment: Comment