Project

General

Profile

« Previous | Next » 

Revision cdd8bb6f

Added by Paul Kelly about 14 years ago

  • ID cdd8bb6f9dedcfc2eccd882ad79c5ac637c6bcf5

Fixes #183 - Adds searchbar facility to hosts

Qualified the fact_selected partial
Added a reset button
Added popup help
Beautification and grooming

View differences:

app/helpers/application_helper.rb
:position => {:after => {:success => "selected_classes" }}
end
def searchtab title, search, options
opts = {:action => params[:action], :tab_name => title, :search => search}
selected_class = options[:selected] ? "selectedtab" : ""
content_tag(:li) do
link_to opts, :class => selected_class do
title + (options[:no_close_button] ? "": (link_to "x", opts.merge(:remove_me => true), :class => "#{selected_class} close"))
end
end
end
def toggle_searchbar
update_page do |page|
page['search'].toggle
page['tabs'].toggle
end
end
end

Also available in: Unified diff