Commit 98a1bbb109a2028ab01ffe54c99c001f6e071bd0
1 parent
981b8dfe
on page structure show name, not code
Showing
2 changed files
with
3 additions
and
2 deletions
| ... | ... | @@ -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 | ... | ... |