Project

General

Profile

« Previous | Next » 

Revision 2a4e5c89

Added by Marc Dequènes almost 14 years ago

  • ID 2a4e5c8923d2697e74e5d2c02e556370e5ae90b0

[evol] added tags and fixes a few typos

View differences:

app/helpers/application_helper.rb
end
def display_alert(text)
"<p>" + display_icon_tag('status/important', :large, :title => _("Alert !") ) +
"<p>" + display_icon_tag('status/important', :large, :title => _("Alert!") ) +
"<span class=\"alert\">" + text + "</span></p>"
end
......
return if img.nil?
if not img.exists?
return "<span class='error'>" + _("Missing Image !") + "</span>"
return "<span class='error'>" + _("Missing Image!") + "</span>"
end
thumb = img.thumbnail(size_name)
if thumb.nil?
"<span class='error'>" + _("Missing Thumbnail !") + "</span>"
"<span class='error'>" + _("Missing Thumbnail!") + "</span>"
else
image_tag(img.public_filename(size_name))
end

Also available in: Unified diff