%- page_title t('activerecord.models.<%= singular_table_name %>.one') -%>
<%- if [ "created_by", "updated_by" ].include? attribute.name -%> <%%= t('activerecord.attributes.<%= attribute.name %>') %> <%- else -%> <%%= t('activerecord.attributes.<%= singular_table_name %>.<%= attribute.name %>') %> <%- end -%> | <%- if attribute.name.include?("picture") -%> <%%= image_tag(@<%= singular_table_name %>.<%= attribute.name %>_url(:display)) %> <%- elsif attribute.type == :boolean -%> <%%= @<%= singular_table_name %>.<%= attribute.name %> ? t('simple_form.yes') : t('simple_form.no') %> <%- elsif attribute.type == :belongs_to -%> <%%= @<%= singular_table_name %>.<%= attribute.name %>.name %> <%- elsif attribute.name == "created_by" -%> <%%= raw(text_created_by(@<%= singular_table_name %>, "create")) %> <%- elsif attribute.name == "updated_by" -%> <%%= raw(text_created_by(@<%= singular_table_name %>, "update")) %> <%- else -%> <%%= @<%= singular_table_name %>.<%= attribute.name %> %> <%- end -%> |