Commit 98a1bbb109a2028ab01ffe54c99c001f6e071bd0

Authored by Karpikau Andrei
1 parent 981b8dfe

on page structure show name, not code

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