Project

General

Profile

Feature #9034 » 9034_add_id_to_flash_messages.diff

Jérôme BATAILLE, 2011-08-10 18:22

View differences:

app/helpers/application_helper.rb (copie de travail)
206 206
  # Renders flash messages
207 207
  def render_flash_messages
208 208
    s = ''
209
    #Ennder 2011-08-05 Feature 9034 added id "flash_{notice|error}"
209 210
    flash.each do |k,v|
210
      s << content_tag('div', v, :class => "flash #{k}")
211
      s << content_tag('div', v, :class => "flash #{k}", :id => "flash_#{k}")
211 212
    end
212 213
    s
213 214
  end
    (1-1/1)