Do not require author for note to display (#2350)
This commit is contained in:
parent
6c6a4516df
commit
de76f3722f
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<h3><u>Notes</u></h3>
|
||||
<% if @user.notes.count > 0 %>
|
||||
<% @user.notes.each do |note| %>
|
||||
<p><em><%= note.created_at.strftime("%d %B %Y %H:%M UTC") %> by <%= User.find(note.author_id).username %></em> -
|
||||
<p><em><%= note.created_at.strftime("%d %B %Y %H:%M UTC") %> by <%= User.find(note.author_id).username if note.author_id.present? %></em> -
|
||||
<% if !note.reason.blank? %><strong><%= note.reason %>:</strong>
|
||||
<% end %><%= note.content %></p>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue