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.15.0.rc2 app/helpers/katello/layout_helper.rb
katello-4.15.0.rc1 app/helpers/katello/layout_helper.rb
katello-4.14.1 app/helpers/katello/layout_helper.rb
katello-4.14.0 app/helpers/katello/layout_helper.rb
katello-4.14.0.rc3 app/helpers/katello/layout_helper.rb
katello-4.14.0.rc2 app/helpers/katello/layout_helper.rb
katello-4.14.0.rc1.1 app/helpers/katello/layout_helper.rb
katello-4.14.0.rc1 app/helpers/katello/layout_helper.rb
katello-4.13.1 app/helpers/katello/layout_helper.rb
katello-4.13.0 app/helpers/katello/layout_helper.rb
katello-4.12.1 app/helpers/katello/layout_helper.rb
katello-4.13.0.rc1 app/helpers/katello/layout_helper.rb
katello-4.12.0 app/helpers/katello/layout_helper.rb
katello-4.12.0.rc3 app/helpers/katello/layout_helper.rb
katello-4.12.0.rc2 app/helpers/katello/layout_helper.rb
katello-4.12.0.rc1 app/helpers/katello/layout_helper.rb
katello-4.11.1 app/helpers/katello/layout_helper.rb
katello-4.11.0 app/helpers/katello/layout_helper.rb
katello-4.11.0.rc2 app/helpers/katello/layout_helper.rb
katello-4.11.0.rc1 app/helpers/katello/layout_helper.rb