Module: Hancock::PoweredHelper
- Defined in:
- app/helpers/hancock/powered_helper.rb
Instance Method Summary collapse
-
#render_hancock_created_by_block ⇒ Object
TODO CMS site block def render_hancock_powered_on_block content_tag :div, class: ‘hancock-powered-on’ do ret = [] ret << content_tag(:span, class: ‘powered-on’) do “Сайт работает на ” end _attrs = { class: “powered_on”, target: “_blank”, title: “Hancock CMS”, data: { “hancock-goto-disabled”: true } } ret << link_to(“Hancock CMS”, “hancock.redrocks.pro/”, _attrs) ret.join.html_safe end end.
Instance Method Details
#render_hancock_created_by_block ⇒ Object
TODO CMS site block def render_hancock_powered_on_block
content_tag :div, class: 'hancock-powered-on' do
ret = []
ret << content_tag(:span, class: 'powered-on') do
"Сайт работает на "
end
_attrs = {
class: "powered_on",
target: "_blank",
title: "Hancock CMS",
data: {
"hancock-goto-disabled": true
}
}
ret << link_to("Hancock CMS", "https://hancock.redrocks.pro/", _attrs)
ret.join.html_safe
end
end
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'app/helpers/hancock/powered_helper.rb', line 23 def render_hancock_created_by_block content_tag :div, class: 'hancock-created-by' do ret = [] ret << content_tag(:span, class: 'created-by') do "Сайт разработан".freeze end _attrs = { class: "created_by", target: "_blank", title: "Redrocks Creative studio", data: { "hancock-goto-disabled": true } }.freeze ret << link_to("Redrocks studio".freeze, "https://redrocks.pro/".freeze, _attrs) ret.join.html_safe end end |