.card.mb-3
  .card-header.d-flex.justify-content-between.align-items-center
    %h5
      Latest Updates
    .float-end
      = link_to(latest_updates_feed_path(format: 'rss'), title: 'RSS Feed') do
        %i.fa.fa-rss
  .list-group.list-group-flush
    - latest_updates.each do |update|
      .list-group-item
        .row
          .col-auto.pe-1
            - if update[1] == :package
              %i.fa.fa-archive.fa-lg.fa-fw.text-warning{ title: 'Package' }
            - else
              %i.fa.fa-cubes.fa-lg.fa-fw.text-secondary{ title: 'Project' }
          .col.text-truncate.ps-1
            %span
              - if update[1] == :package
                = link_to(package_show_path(project: update[3], package: update[2])) do
                  = update[2]
              - else
                = link_to(project_show_path(update[1])) do
                  = update[1]
            %p.mt-1.mb-0
              = render TimeComponent.new(time: update[0])
