Author :
<% user = User.find(log.create_user_id) %>
<%= user.member_profile.nil? ? user.user_name : user.member_profile.name %>
Date :
<%= log.created_at %>
<% if !log.update_user_id.nil? %>
Updated by :
<% user = User.find(log.update_user_id) %>
<%= user.member_profile.nil? ? user.user_name : user.member_profile.name %>
<% end %>
<% if !log.site_log_files.blank? %>
Files :
<% log.site_log_files.each do |file| %>
- <%= link_to (file.title.nil? || file.title == "" ? file.file_identifier : file.title), file.file.url, {:class => 'file-link file-type', :target => '_blank', :title => file.file_identifier} %>
<% end %>
<% end %>
Content :
<%= log.content.html_safe %>
<% if i != (@logs.length - 1) %>