1
0

Update notes in div

This commit is contained in:
cryptogopher
2020-04-19 18:16:07 +02:00
parent e659ecc760
commit 3706206191
9 changed files with 45 additions and 10 deletions

View File

@@ -15,4 +15,10 @@ module MealsHelper
end
end.reduce(:+)
end
def display_notes(m)
content_tag :div, link_to(l(:button_notes), edit_notes_meal_path(m),
{remote: true, class: "icon icon-wiki-page"}) +
(m.notes.blank? ? "" : ": #{m.notes}")
end
end