scinote-web/app/helpers/protocols_helper.rb

8 lines
171 B
Ruby
Raw Normal View History

2023-03-03 21:32:08 +08:00
# frozen_string_literal: true
module ProtocolsHelper
2023-03-03 21:32:08 +08:00
def templates_view_mode_archived?(type: nil, protocol: nil)
type == :archived || protocol&.archived?
end
end