1
0

Proper sorting of meals, index

This commit is contained in:
cryptogopher
2020-04-20 21:43:12 +02:00
parent 66cd7926e8
commit baaefb2b68
4 changed files with 16 additions and 11 deletions

View File

@@ -17,8 +17,8 @@ module MealsHelper
end
def display_notes(m)
content_tag(:span, m.notes) +
link_to(l(:button_notes), edit_notes_meal_path(m),
{remote: true, class: "icon icon-wiki-page"}) +
content_tag(:span, m.notes.blank? ? "" : ": #{m.notes}")
{remote: true, class: "icon icon-wiki-page", style: "float: right"})
end
end