demarches-normaliennes/app/components/instructeurs/instruction_menu_component.rb

18 lines
275 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Instructeurs::InstructionMenuComponent < ApplicationComponent
attr_reader :dossier
def initialize(dossier:)
@dossier = dossier
end
def render?
dossier.en_instruction?
end
def menu_label
t(".instruct")
end
end