- model_class = Page .page-header %h1= model_class.model_name.human.titleize %p %strong= model_class.human_attribute_name(:title) + ':' = @page.title %p %strong= model_class.human_attribute_name(:enabled) + ':' = t "humanizers.bool.#{@page.enabled}" %p %strong= model_class.human_attribute_name(:url_id) + ':' = @page.url_id %p %strong= model_class.human_attribute_name(:mode) + ':' = t "activerecord.attributes.page.modes.#{@page.mode}" -if @page.mode == 'path' %p %strong= model_class.human_attribute_name(:link) + ':' = link_to t("activerecord.attributes.page.links.#{@page.link}"), send(Page.links[@page.link.to_sym]), target: :_blank -elsif @page.mode == 'link' %p %strong= model_class.human_attribute_name(:link) + ':' = link_to @page.link, @page.link, target: :_blank -else %p %strong= model_class.human_attribute_name(:body) + ':' %br = @page.body.to_s.html_safe %p %strong= model_class.human_attribute_name(:keywords) + ':' %br = @page.keywords %p %strong= model_class.human_attribute_name(:description) + ':' %br = @page.description = link_to t('helpers.links.back'), pages_path, :class => 'btn btn-default' = link_to t('helpers.links.edit'), edit_page_path(@page), class: 'btn btn-default' = link_to t('helpers.links.destroy'), page_path(@page), method: 'delete', data: { confirm: t('helpers.links.confirm') }, class: 'btn btn-danger'