Sha256: bbd0cbe403060276849957400329594c9cbd9b3ea104c765923ed3b8d23fdc34

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

- content_for :tools do
	- b.tool :name => "Add" do
		%a{:href => "#", :class => "_embedded_popup", "data-content_id" => "add_content_popup"}
			Add
		#add_content_popup._hidden
			- b.popup do
				%a{:href => "#"} Page
				%a{:href => "#"} Note
				%a{:href => "#"} File

	- b.tool :name => "Search" do
		- form_tag do
			= text_field_tag ''

	- b.tool :name => "Tags" do
		- b.tag_selector do |o|
			- o.selected ['hot', 'low']
			- o.selected_tag_to_link lambda{|tag| link_to tag.name, '#'}
			- o.tags [{:name => 'top', :count => 10}, {:name => 'low', :count => 1}, {:name => 'hot', :count => 7}, {:name => 'middle', :count => 3}, {:name => 'middle', :count => 3}, {:name => 'middle', :count => 3}, {:name => 'ajax', :count => 1}, {:name => 'important', :count => 4}, {:name => 'artifical_intelligence', :count => 6}, {:name => 'google', :count => 1}, {:name => 'body', :count => 2}, {:name => 'sport', :count => 8}].collect{|hash| hash.to_openobject}
			- o.tag_to_link lambda{|tag| link_to tag.name, '#'}
			
	- b.tool :name => "Parameters" do				
		- b.more :name => "...", :id => 'more', :class => '_tiny' do
			- b.basic_list do
				= b.basic_list_item(tag(:a, "Update icon", :href => '#'))
				= b.basic_list_item(tag(:a, "Edit", :href => '#') + " " + tag(:a, "Delete", :href => '#'))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
common_interface-0.1.2 lib/views/CommonInterface/Demo/shared/_tools.html.haml
common_interface-0.1.1 lib/views/CommonInterface/Demo/shared/_tools.html.haml