<td class="building-repositories">
  <% if project.building_repositories.size.zero? %>
    <%= sprite_tag('accept', alt: 'None') %>
  <% else %>
    <% building = project.building_repositories.map do |repo| %>
      <% link_to "#{repo['repository']}-#{repo['arch']}".html_safe,
                  main_app.project_repository_state_url(project.name, repo['repository']) %>
    <% end %>
    <%= short_sentence building %>
  <% end %>
</td>
<td class="broken-packages">
  <% if project.broken_packages.size.zero? %>
    <%= sprite_tag('accept', alt: 'None') %>
  <% else %>
    <% broken = project.broken_packages.map do |repo| %>
      <% link_to "#{pack['package']} (#{pack['state']})".html_safe,
                main_app.package_show_url(project.name, pack['package']) %>
    <% end %>
    <%= short_sentence broken %>
  <% end %>
</td>

<td class="building-repositories">
  <% if project.building_repositories.size.zero? %>
    <%= sprite_tag('accept', alt: 'None') %>
  <% else %>
    <% building = project.building_repositories.map do |repo| %>
      <% link_to "#{repo['repository']}-#{repo['arch']}".html_safe,
                  main_app.project_repository_state_url(project.name, repo['repository']) %>
    <% end %>
    <%= short_sentence building %>
  <% end %>
</td>
<td class="broken-packages">
  <% if project.broken_packages.size.zero? %>
    <%= sprite_tag('accept', alt: 'None') %>
  <% else %>
    <% broken = project.broken_packages.map do |pack| %>
      <% link_to "#{pack['package']} (#{pack['state']})".html_safe,
                main_app.package_show_url(project.name, pack['package']) %>
    <% end %>
    <%= short_sentence broken %>
  <% end %>
</td>

Fix a small bug in the dashboard view
Fix a small bug in the dashboard view
