Sha256: e1f08082bead76db8ef2e8ed2faf8d7edb5e01f604bd586a5ae973f57ecae0c5

Contents?: true

Size: 1.52 KB

Versions: 10

Compression:

Stored size: 1.52 KB

Contents

module UiBibz::Helpers::MetaHelper

  # Returns html script tags to include boostrap 3.3.1 [js,css], jquery 2.1.1 [js],
  # font-awesome 4.2.0 [css]
  #
  #   ui_bibz_meta_links
  #   # => <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" media="screen" rel="stylesheet" />
  #   #    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" media="screen" rel="stylesheet" />
  #   #    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css" media="screen" rel="stylesheet" />
  #   #    <script src=="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  #   #    <script src=="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
  def ui_bibz_meta_links
    capture do
      # Latest compiled and minified CSS
      concat stylesheet_link_tag "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css", title: 'Default'
      # font awesome icons
      concat stylesheet_link_tag "https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"
      # Jquery is required for boostrap
      concat javascript_include_tag 'https://code.jquery.com/jquery-2.1.1.min.js'
      # Latest compiled and minified JavaScript
      concat javascript_include_tag "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"
    end
  end

  def ui_bibz_local_meta_links
    capture do
      # Jquery is required for boostrap
      concat javascript_include_tag 'jquery-2.1.4.min'
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ui_bibz-1.2.5.3 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.5.2 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.5.1 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.5 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.4 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.3 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.2 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.1 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.2.0 lib/ui_bibz/helpers/meta_helper.rb
ui_bibz-1.1.7 lib/ui_bibz/helpers/meta_helper.rb