Class: CurationConcerns::PermissionBadge
- Inherits:
-
Object
- Object
- CurationConcerns::PermissionBadge
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- app/presenters/curation_concerns/permission_badge.rb
Instance Method Summary collapse
-
#initialize(solr_document) ⇒ PermissionBadge
constructor
A new instance of PermissionBadge.
-
#render ⇒ Object
Draws a span tag with styles for a bootstrap label.
Constructor Details
#initialize(solr_document) ⇒ PermissionBadge
Returns a new instance of PermissionBadge.
5 6 7 |
# File 'app/presenters/curation_concerns/permission_badge.rb', line 5 def initialize(solr_document) @solr_document = solr_document end |
Instance Method Details
#render ⇒ Object
Draws a span tag with styles for a bootstrap label
10 11 12 |
# File 'app/presenters/curation_concerns/permission_badge.rb', line 10 def render content_tag(:span, link_title, title: link_title, class: "label #{dom_label_class}") end |