Improve display of anonymous note comments
[rails.git] / app / views / notes / _description.html.erb
1 <div>
2   <% description.comments.each do |comment| -%>
3   <div class="note-comment" style="margin-top: 5px">
4     <% if comment.author.nil> -%>
5     <div class="note-comment-description" style="font-size: smaller; color: #999999"><%= t "note.description.#{comment.event}_at", :when => friendly_date(comment.created_at) %></div>
6     <% else -%>
7     <div class="note-comment-description" style="font-size: smaller; color: #999999"><%= t "note.description.#{comment.event}_at_by", :when => friendly_date(comment.created_at), :user => note_author(comment.author, :only_path => false) %></div>
8     <% end -%>
9     <div class="note-comment-text"><%= comment.body %></div>
10   </div>
11   <% end -%>
12 </div>