> <%%= t('.<%= attribute.name %>', :default => t('activerecord.attributes.<%= singular_name %>.<%= attribute.name %>')) %> |
<% if attribute.type.to_s == 'text' -%>
<%% @<%= singular_name %>.message.to_s.gsub("\r\n\r\n", "\r\n").split("\r\n").each_with_index do |sentence, index| %> <%%=raw " " unless index == 0 %> <%%= sentence %> <%% end %> <% else -%> <%%= @<%= singular_name %>.<%= attribute.name %> %> <% end -%> |
<%%= t('.age') %>: <%%= time_ago_in_words(@<%= singular_name %>.created_at) %>
<% if include_spam? %> <%% if @<%= singular_name %>.spam? %><%%= t('.spam') %>: <%%= t('.spam_yes') %>
<%% end %><% end %>