1
0

Moved notes form from div to td

This commit is contained in:
cryptogopher
2020-04-19 21:34:24 +02:00
parent 3706206191
commit 03d0a56474
6 changed files with 15 additions and 16 deletions

View File

@@ -17,8 +17,8 @@ module MealsHelper
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}")
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}")
end
end