Project

General

Profile

« Previous | Next » 

Revision 252572a7

Added by Marc Dequènes almost 14 years ago

  • ID 252572a7aece016a792e64af529c64daecc5b809

[evol] added a simple search feature for artworks (with count)

View differences:

app/helpers/application_helper.rb
link_to text, resource_path(obj)
end
def link_to_resource_index(text)
link_to(display_icon_tag('actions/document-open', :medium, :title => text) +
" <span class=\"middle\">" + text + "</span>", resource_index_path)
def link_to_resource_index(text, with_icon = true)
txt = (with_icon) ?
display_icon_tag('actions/document-open', :medium, :title => text) + " <span class=\"middle\">" + text + "</span>" :
text
link_to(txt, resource_index_path)
end
def display_alert(text)

Also available in: Unified diff