Commit 5ed280e7 authored by Valery Sizov's avatar Valery Sizov

Admin area: doesn't show a note when it's empty

parent a724c215
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
- else - else
%i.fa.fa-user.cgreen %i.fa.fa-user.cgreen
= link_to user.name, [:admin, user] = link_to user.name, [:admin, user]
- if user.note - if user.note.present?
= link_to "#", { "data-toggle" => "tooltip", title: user.note, class: "user-note"} do = link_to "#", { "data-toggle" => "tooltip", title: user.note, class: "user-note"} do
= icon("sticky-note-o cgrey") = icon("sticky-note-o cgrey")
- if user.admin? - if user.admin?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment