Sha256: bbfa92d33176f9da4be843f76d472a38f71b0d49af577acca17c65e9b921be69
Contents?: true
Size: 689 Bytes
Versions: 44
Compression:
Stored size: 689 Bytes
Contents
module Katello module 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 if args args.map { |arg| content_for(:katello_javascripts) { javascript_include_tag(arg) } } end 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
44 entries across 44 versions & 1 rubygems