openstreetmap-website/app/helpers
Andy Allan 24f6aeda6a Use hash-based flash objects to render complex flash messages
Since flash objects can only be String, Hash or Array (notably excluding SafeBuffers), then this approach is necessary to render complex html in a safe manner.

Each local can be treated as an (unsafe) string, and therefore escaped normally when rendered into the template. The template (and translation strings) can
contain html since they are no longer stored in the flash as a plain string.

Fixes #3215
2021-06-23 20:10:55 +01:00
..
application_helper.rb Use hash-based flash objects to render complex flash messages 2021-06-23 20:10:55 +01:00
asset_helper.rb Avoid using Rails.application.assets as it no longer set in production 2016-02-11 10:15:19 +00:00
banner_helper.rb Fix Style/NumericPredicate rubocop warnings 2018-09-22 17:34:58 +01:00
browse_helper.rb Prefer keyword arguments when method has optional boolean arguments 2020-11-12 11:24:44 +00:00
browse_tags_helper.rb Prefer string interpolation to concatenation 2020-11-13 11:32:28 +00:00
changesets_helper.rb Fix new rubocop warnings 2021-06-01 18:27:50 +01:00
geocoder_helper.rb Avoid some uses of html_safe 2020-10-28 14:45:20 +01:00
issues_helper.rb Fix new rubocop warnings 2020-06-11 19:21:41 +01:00
note_helper.rb Prefer string interpolation to concatenation 2020-10-28 17:15:14 +01:00
open_graph_helper.rb Avoid various uses of html_safe 2020-10-21 15:43:14 +02:00
reports_helper.rb Refactor reports form to use bootstrap 2020-08-19 16:58:43 +02:00
title_helper.rb Improve readability 2020-11-13 10:51:01 +00:00
trace_helper.rb Fix some rubocop todos 2020-08-02 19:38:58 +01:00
user_blocks_helper.rb Fix case when user block durations are slightly negative 2021-06-09 15:16:35 +01:00
user_helper.rb Use image_processing macros to resize images 2021-05-12 18:49:21 +01:00
user_mailer_helper.rb Rename Notifier to UserMailer 2020-10-14 15:04:58 +02:00
user_roles_helper.rb Drop last vestiges of ruby 2.5 support 2021-06-08 20:33:25 +01:00