<% ::ChupakabraTools::ClassHelper.get_controller_hierarchy(self.controller.class).each do |klass| %> <% klass.get_kb_page(:show) do |parent_page| %> <% parent_page.menus.each_pair do |key, parent_menu| %> <% parent_menu.items.each do |menu_item| %> <% end if parent_menu.name == :top_menu && page.menus[parent_menu.name] %> <% end if parent_page %> <% end if klass.respond_to?(:get_kb_page) %> <% end %> <% page.menus[:top_menu].items.each do |menu_item| %> <% end if page.menus[:top_menu] %>

<%= I18n.t("#{self.controller.to_i18n}.show.title") %> ( <%= link_to "edit", self.controller.to_url_for(:edit, id: entry) %> )

<% page.entries[:show].properties.each do |property| %> <% end %>
<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.#{property.name}") %> <% if property.output_control == :link %> <%= link_to_property property, entry %> <% elsif property.output_control == :image %> <%= image_tag print_property(entry, :url) %> <% else %> <%= print_property(entry, property.text_value_property || property.name) %> <% end %>

<%= I18n.t("common.section_titles.system_attributes") %>

<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.id") %> <%= print_property(entry, :id) %>
<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.uin") %> <%= print_property(entry, :uin) %>
<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.created_by") %> <%= print_property(entry, :creator_name) %>
<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.created_at") %> <%= print_property(entry, :created_at) %>
<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.updated_by") %> <%= print_property(entry, :updater_name) %>
<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.updated_at") %> <%= print_property(entry, :updated_at) %>
<%= I18n.t("activerecord.attributes.#{entry.class.to_i18n}.deletion_status_id") %> <%= print_property(entry, :deletion_status_name) %>