<% report = false unless defined?(report) %> <% readonly = false unless defined?(readonly) %> <% edit_mode = (comment.user == current_user && !readonly) %>
<% if report %> <%= image_tag user_avatar_absolute_url(comment.user, :icon_small), class: 'avatar' %> <% else %> <%= image_tag avatar_path(comment.user, :icon_small), class: 'avatar' %> <% end %>
<%= comment.user.full_name %>
<%= l(comment.created_at, format: :full) %>
<% if edit_mode %>
<%= t('general.save') %>
<%= t('general.edit') %>
<% end %>
<%= custom_auto_link(comment.message, team: current_team, simple_format: true).html_safe %>
<% if edit_mode %> <%= text_area_tag 'message', comment.message, disabled: true, class: 'smart-text-area hidden' %> <% end %>