Method: Tenon::TenonContentHelper#tenon_content_sizes
- Defined in:
- app/helpers/tenon/tenon_content_helper.rb
#tenon_content_sizes ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'app/helpers/tenon/tenon_content_helper.rb', line 29 def tenon_content_sizes links = [] Tenon.config.front_end[:breakpoints].each do |name, size| links << link_to(name.to_s.titleize, '#', class: 'btn btn-white', data: { size: size_for_breakpoint(size) }) end last = Tenon.config.front_end[:breakpoints].values.last links << link_to('Mobile', '#', class: 'btn btn-white', data: { size: 320, mobile: true }) links.join('').html_safe end |