]> git.openstreetmap.org Git - rails.git/commit
Added bootstrap alert when body preview is empty
authorNenad Vujicic <nenadus@gmail.com>
Tue, 30 Jul 2024 22:24:45 +0000 (00:24 +0200)
committerNenad Vujicic <nenadus@gmail.com>
Tue, 30 Jul 2024 22:24:45 +0000 (00:24 +0200)
commit92f9d57a4072d11c6995a1291c587a48e6c50362
treea0bc5599233170417c70a9d5836e56b03b69ac89
parentf771938538f88bf1313b911c8a9c39e4e2e4c84f
Added bootstrap alert when body preview is empty

Fixes #3748. Added check to SiteController#preview to detect if (message, diary entry, diary entry comment) body is empty and if positive, returns rendered bootstrap alert "Nothing to preview" to be displayed in richtext_field.
app/controllers/site_controller.rb
config/locales/en.yml