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.0.0.rc3 app/helpers/katello/layout_helper.rb
katello-3.18.2.1 app/helpers/katello/layout_helper.rb
katello-3.18.2 app/helpers/katello/layout_helper.rb
katello-3.17.3 app/helpers/katello/layout_helper.rb
katello-4.0.0.rc2 app/helpers/katello/layout_helper.rb
katello-3.18.1.1 app/helpers/katello/layout_helper.rb
katello-3.17.2 app/helpers/katello/layout_helper.rb
katello-4.0.0.rc1 app/helpers/katello/layout_helper.rb
katello-3.18.1 app/helpers/katello/layout_helper.rb
katello-3.18.0 app/helpers/katello/layout_helper.rb
katello-3.17.1 app/helpers/katello/layout_helper.rb
katello-3.16.2 app/helpers/katello/layout_helper.rb
katello-3.18.0.rc2.1 app/helpers/katello/layout_helper.rb
katello-3.18.0.rc2 app/helpers/katello/layout_helper.rb
katello-3.17.0 app/helpers/katello/layout_helper.rb
katello-3.18.0.rc1 app/helpers/katello/layout_helper.rb
katello-3.17.0.rc2.2 app/helpers/katello/layout_helper.rb
katello-3.17.0.rc2.1 app/helpers/katello/layout_helper.rb
katello-3.16.1.2 app/helpers/katello/layout_helper.rb
katello-3.16.1.1 app/helpers/katello/layout_helper.rb