Class: ContentBlockTools::Presenters::BlockPresenters::Contact::ContactLinkPresenter
- Inherits:
-
BasePresenter
- Object
- BasePresenter
- ContentBlockTools::Presenters::BlockPresenters::Contact::ContactLinkPresenter
- Includes:
- BlockLevelContactItem
- Defined in:
- lib/content_block_tools/presenters/block_presenters/contact/contact_link_presenter.rb
Constant Summary
Constants included from BlockLevelContactItem
BlockLevelContactItem::BASE_TAG_TYPE
Constants inherited from BasePresenter
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
Methods included from BlockLevelContactItem
Methods inherited from BasePresenter
Methods included from Govspeak
Instance Method Details
#render ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/content_block_tools/presenters/block_presenters/contact/contact_link_presenter.rb', line 10 def render wrapper do content_tag(:div, class: "email-url-number") do content_tag(:p) do concat content_tag(:span, item[:title]) concat content_tag(:a, item[:url], class: "url", href: item[:url]) end end end end |