- last_commit = project.last_commit
%tr.alert{class: commit_status_alert_class(last_commit) }
  %td
    = project.id
  %td
    = link_to [:admin, project] do
      %strong= project.name
  %td
    - if last_commit
      #{last_commit.status} (#{commit_link(last_commit)})
      = time_ago_in_words project.last_commit_date
      ago
    - else
      No builds yet
  %td
    - if project.public
      %i.icon-globe
      Public
    - else
      %i.icon-lock
      Private
  %td
    = project.commits.count
  %td
    = link_to [:admin, project], method: :delete, class: 'btn btn-danger btn-xs' do
      %i.icon-remove
      Remove

- last_commit = project.last_commit
%tr.alert{class: commit_status_alert_class(last_commit) }
  %td
    = project.id
  %td
    = link_to [:admin, project] do
      %strong= project.name
  %td
    - if last_commit
      #{last_commit.status} (#{commit_link(last_commit)})
      - if project.last_commit_date
        = time_ago_in_words project.last_commit_date
        ago
    - else
      No builds yet
  %td
    - if project.public
      %i.icon-globe
      Public
    - else
      %i.icon-lock
      Private
  %td
    = project.commits.count
  %td
    = link_to [:admin, project], method: :delete, class: 'btn btn-danger btn-xs' do
      %i.icon-remove
      Remove

Fix project views for admin area if commit date is nil
Fix project views for admin area if commit date is nil

Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
