Sha256: 962e516c389d20bd2887cf3742da32dda493c8b3fb8c6abf695c051aebf12dc4
Contents?: true
Size: 692 Bytes
Versions: 134
Compression:
Stored size: 692 Bytes
Contents
module Katello module LayoutHelper include ::LayoutHelper def stylesheet(*args) args.map { |arg| content_for(:stylesheets) { stylesheet_link_tag(arg) } } return "" end def javascript(*args, &block) if block content_for(:inline_javascripts) { block.call } end args&.map { |arg| content_for(:katello_javascripts) { javascript_include_tag(arg) } } return "" end def trunc_with_tooltip(text, length = 32) text = text.to_s options = text.size > length ? { :'data-original-title' => text, :rel => 'twipsy' } : {} content_tag(:span, truncate(text, :length => length), options).html_safe end end end
Version data entries
134 entries across 134 versions & 1 rubygems