Module: Namespaces::ArchiveHelper
- Includes:
- NamespaceHelper
- Defined in:
- app/helpers/namespaces/archive_helper.rb
Instance Method Summary collapse
Instance Method Details
#archived_banner_message(namespace) ⇒ Object
13 14 15 16 17 |
# File 'app/helpers/namespaces/archive_helper.rb', line 13 def (namespace) return (namespace) if namespace.ancestors_archived? (namespace) end |
#show_archived_banner?(namespace) ⇒ Boolean
7 8 9 10 11 |
# File 'app/helpers/namespaces/archive_helper.rb', line 7 def (namespace) return false unless namespace namespace.persisted? && namespace.self_or_ancestors_archived? end |