Commit 98a1bbb109a2028ab01ffe54c99c001f6e071bd0

Authored by Karpikau Andrei
1 parent 981b8dfe

on page structure show name, not code

@@ -124,7 +124,8 @@ module Kanjai @@ -124,7 +124,8 @@ module Kanjai
124 elsif self.type_content == 'plugin' 124 elsif self.type_content == 'plugin'
125 "#{I18n.t('admin.content_types.plugin')}: #{controller_name}.#{action_name}" 125 "#{I18n.t('admin.content_types.plugin')}: #{controller_name}.#{action_name}"
126 else 126 else
127 - self.type_content 127 + subpart = TemplatePart.find_by_code(self.type_content)
  128 + subpart ? subpart.name : self.type_content
128 end 129 end
129 end 130 end
130 131
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.190" 2 + VERSION = "0.0.191"
3 end 3 end