summaryrefslogtreecommitdiff
path: root/app/views/admin/projects/_project.html.haml
blob: a8ee2c375e599185dad19f60e6d6c644dc7cf01c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- last_build = project.last_build
%tr.alert{class: project_statuc_class(project) }
  %td
    = project.id
  %td
    = link_to [:admin, project] do
      %strong= project.name
  %td
    - if last_build
      #{last_build.status} (#{build_link(last_build)})
      = time_ago_in_words project.last_build_date
      ago
    - else
      No builds yet
  %td
    - if project.public
      %i.icon-globe
      Public
    - else
      %i.icon-lock
      Private
  %td
    = project.builds.count
  %td
    = link_to [:admin, project], method: :delete, class: 'btn btn-danger btn-xs' do
      %i.icon-remove
      Remove