summaryrefslogtreecommitdiff
path: root/app/views/projects/info.html.haml
blob: 513b2ab2cd4cd01765275e92580b4ae2c2ce95bb (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
= render "project_head"
%h3= @project.name
%br

  

%pre
  = "git clone #{@project.url_to_repo}"


%table
  %tr
    %td Name
    %td= @project.name
  
  %tr
    %td Slug
    %td= @project.code
  
  %tr
    %td Path
    %td= @project.path

  %tr
    %td Owner
    %td= link_to @project.owner.name, project_team_member_path(@project, @project.team_member_by_id(@project.owner))

  %tr
    %td Last commit
    %td
      = time_ago_in_words(@project.commit.committed_date)
      ago

  %tr
    %td Team
    %td
      = @project.users_projects.count
      users

  %tr
    %td Open Issues
    %td
      = @project.issues.opened.count

  %tr
    %td Merge Requests
    %td
      = @project.merge_requests.opened.count

  %tr
    %td Created
    %td= @project.created_at.stamp("Aug 21, 2011")

  %tr
    %td{:colspan => 2}= simple_format @project.description

.actions
  = link_to "Edit", edit_project_path(@project), :class => "btn"