2015-10-24 18:46:33 +05:30
|
|
|
- last_commit = project.commits.last
|
2015-09-25 12:07:36 +05:30
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= project.id
|
|
|
|
%td
|
|
|
|
= link_to [:ci, project] do
|
|
|
|
%strong= project.name
|
|
|
|
%td
|
|
|
|
- if last_commit
|
|
|
|
= ci_status_with_icon(last_commit.status)
|
|
|
|
- if project.last_commit_date
|
|
|
|
·
|
|
|
|
= time_ago_in_words project.last_commit_date
|
|
|
|
ago
|
|
|
|
- else
|
|
|
|
No builds yet
|
|
|
|
%td
|
|
|
|
- if project.public
|
|
|
|
%i.fa.fa-globe
|
|
|
|
Public
|
|
|
|
- else
|
|
|
|
%i.fa.fa-lock
|
|
|
|
Private
|
|
|
|
%td
|
|
|
|
= project.commits.count
|
|
|
|
%td
|
|
|
|
= link_to [:ci, :admin, project], method: :delete, class: 'btn btn-danger btn-sm' do
|
|
|
|
%i.fa.fa-remove
|
|
|
|
Remove
|