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

Version Path
katello-4.10.0 app/helpers/katello/layout_helper.rb
katello-4.9.2 app/helpers/katello/layout_helper.rb
katello-4.10.0.rc2 app/helpers/katello/layout_helper.rb
katello-4.10.0.rc1 app/helpers/katello/layout_helper.rb
katello-4.8.4 app/helpers/katello/layout_helper.rb
katello-4.9.1 app/helpers/katello/layout_helper.rb
katello-4.8.3 app/helpers/katello/layout_helper.rb
katello-4.9.0 app/helpers/katello/layout_helper.rb
katello-4.7.6 app/helpers/katello/layout_helper.rb
katello-4.8.2 app/helpers/katello/layout_helper.rb
katello-4.9.0.rc2 app/helpers/katello/layout_helper.rb
katello-4.9.0.rc1 app/helpers/katello/layout_helper.rb
katello-4.8.1 app/helpers/katello/layout_helper.rb
katello-4.7.5 app/helpers/katello/layout_helper.rb
katello-4.8.0 app/helpers/katello/layout_helper.rb
katello-4.8.0.rc2 app/helpers/katello/layout_helper.rb
katello-4.7.4 app/helpers/katello/layout_helper.rb
katello-4.8.0.rc1 app/helpers/katello/layout_helper.rb
katello-4.7.3 app/helpers/katello/layout_helper.rb
katello-4.7.2 app/helpers/katello/layout_helper.rb