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