- if result[:statistics]
  %li.nav-item
    = link_to(package_statistics_path(project: project, package: package, repository: repository, arch: result[:arch]),
      title: 'Show statistics', class: 'nav-link') do
      %span.fa-stack.half-font-size
        %i.far.fa-file.fa-stack-2x
        %i.fas.fa-search.fa-stack-1x
      Show resources

%li.nav-item
  = link_to(index_package_job_history_path(project: project, package_name: package, repository: repository, arch: result[:arch]),
  title: 'Job History', class: 'nav-link') do
    %i.fas.fa-history
    Job History

%li.nav-item
  = link_to(index_package_build_reason_path(project: project, package_name: package, repository: repository, arch: result[:arch]),
  title: 'Build reason', class: 'nav-link') do
    %i.fas.fa-info-circle
    Build reason

- if result[:binaries].any? { |b| b[:filename] == 'rpmlint.log' }
  %li.nav-item
    = link_to(project_package_repository_architecture_rpmlint_path(project: project,
                                                                   package: package,
                                                                   repository: repository,
                                                                   architecture_name: result[:arch]),
    title: 'RPM Lint', class: 'nav-link') do
      %i.fas.fa-gauge-high
      RPM Lint
