Update notes in div
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user