Sha256: 2c393f476a8026baf5423329c65372693dcb1aef4b4266c39e189066c492a79e
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
# -*- coding: utf-8 -*- module CollectionHelper def render_collection_visibility_badge if can? :edit, @collection render_collection_visibility_link(@collection) else render_visibility_label(@collection) end end def render_collection_visibility_link(collection) link_to render_visibility_label(collection), collections.edit_collection_path(collection, anchor: "permissions_display"), id: "permission_" + collection.id, class: "visibility-link" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-6.7.0 | app/helpers/collection_helper.rb |