ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

feature_cp_677_add_id_to_flash_messages_V2.4.0.diff

Jérôme Bataille, 2011-10-31 05:07 pm

Download (568 Bytes)

 
app/helpers/application_helper.rb (copie de travail)
206 206
  # Renders flash messages
207 207
  def render_flash_messages
208 208
    s = ''
209
    #Utopism 2011-08-05 Feature CP #677 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