- if log_entry.event_type.camelcase === 'BuildSuccess'
  %span.text-success
    %i.fas.fa-check-circle
    %span= log_entry.event_type.camelcase.prepend('Event::').constantize.description
- elsif log_entry.event_type.camelcase === 'BuildFail'
  %span.text-danger
    %i.fas.fa-exclamation-circle
    %span= log_entry.event_type.camelcase.prepend('Event::').constantize.description
- else
  = log_entry.event_type.camelcase.prepend('Event::').constantize.description

- if log_entry.package_name
  (#{link_to(log_entry.package_name, package_show_path(project.name, log_entry.package_name))})
- if log_entry.user_name
  by #{link_to(log_entry.user_name, user_path(log_entry.user_name))}
- if log_entry.bs_request
  via #{link_to("##{log_entry.bs_request.number}", request_show_path(log_entry.bs_request.number))}
= render TimeComponent.new(time: log_entry.datetime)
