additionals/app/helpers/additionals_common_journals_helper.rb
2023-01-23 10:23:23 +01:00

12 lines
357 B
Ruby

# frozen_string_literal: true
module AdditionalsCommonJournalsHelper
def render_author_indicator(entry, journal)
return if entry.author_id != journal.user_id
tag.span l(:field_author),
title: l(:label_user_is_author_of, entity: l("label_#{entry.class.name.underscore}_genitive")),
class: 'badge badge-author'
end
end