Class: CurationConcerns::PermissionBadge

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
app/presenters/curation_concerns/permission_badge.rb

Instance Method Summary collapse

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

#renderObject

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
  (:span, link_title, title: link_title, class: "label #{dom_label_class}")
end