Sha256: fe16ff08835f965021e29a9935be08be4357bbffaf3090a668a4bf42ad5c80a6

Contents?: true

Size: 1.04 KB

Versions: 6

Compression:

Stored size: 1.04 KB

Contents

# -*- encoding : utf-8 -*-
# ============================================================================
#
#	RAILS BOOTSTRAP ENGINE
#
#	Bootstrap Popovers
#	http://twitter.github.com/bootstrap/javascript.html#popovers
#
# ============================================================================
#
# Copyright 2012-2013 Luiz Eduardo de Oliveira Fonseca, AgĂȘncia Orangeweb
#
# Licensed under The MIT License
#
# http://opensource.org/licenses/MIT
#
module BootstrapPopoverHelper






  	#	Generates bootstrap popover markup
  	#
  	#	<a href="#" rel="tooltip" title="Tooltip Text">Title</a>
  	#
  	def tooltip_link_to title, link, opts={}
  		opts[:rel] = :tooltip
  		link_to title, link, opts
  	end
	
	
	
	
	
	
  	#	Generates bootstrap popover markup
  	#
  	#	<a href="#" rel="popover" data-content="Some Content" data-original-title="A Title">
  	#		Title
  	#	</a>
  	#
	def popover title, content, options={}
		options[:rel] = :popover
		options[:data] = { :content => content, "original-title" => title }
		link_to title, "#", options
	end



end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails-bootstrap-engine-0.0.9 app/helpers/bootstrap_popover_helper.rb
rails-bootstrap-engine-0.0.8 app/helpers/bootstrap_popover_helper.rb
rails-bootstrap-engine-0.0.5 app/helpers/bootstrap_popover_helper.rb
rails-bootstrap-engine-0.0.4 app/helpers/bootstrap_popover_helper.rb
rails-bootstrap-engine-0.0.3 app/helpers/bootstrap_popover_helper.rb
rails-bootstrap-engine-0.0.2 app/helpers/bootstrap_popover_helper.rb