.activity .activity__header .activity__avatar = link_to_modifier(entry) do = avatar_for entry.modifier %h3.activity__name= link_to_modifier(entry) %p.activity__time= activity_time(entry.created_at) .activity__message - content = Workarea::Content.from_block(entry.audited_id) - type = entry.model_attributes['type_id'].to_s.humanize.downcase - name = content.blank? ? t('workarea.admin.activities.some_content') : link_to(content.name, content_path(content)) = t('workarea.admin.activities.content_block_create_html', type: type, name: name)