index.html.haml 1.83 KB
Newer Older
1
- if current_user.require_ssh_key?
2
  .alert-message.block-message.error
3
4
5
6
7
8
9
10
    %p  
      You wont be able to pull/push project code unless you  
      = link_to new_key_path, :class => "vlink" do 
        add new key
      to your profile

%div.dashboard_category
  %h3
11
    %span.ico.projects
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12
    = link_to "Projects" , "#projects", :id => "projects"
13
14
15
16
17
18
19
20
21
22
    %small
      ( most recent )

  %strong.right
    = link_to projects_path do 
      Projects list → 
  %hr
  .row
    .dashboard_block
      .row
23
        .span10= render "dashboard/projects_feed", :projects => @active_projects
24
        .span4.right
25
26
27
28
29
30
31
32
33
34
          - if current_user.can_create_project?
            .alert-message.block-message.warning
              You can create up to
              = current_user.projects_limit
              projects. Click on link below to add a new one
              .link_holder
                = link_to new_project_path, :class => "" do 
                  New Project » 


35
- if @merge_requests.any?
36
37
  %div.dashboard_category
    %h3
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
38
39
      = link_to "Merge Requests" , "#merge_requests", :id => "merge_requests"
      
40
41
42
      %small ( authored or assigned to you )
    %strong.right
      = link_to dashboard_merge_requests_path do 
43
        Visit merge requests page → 
44
45
46
47
    %hr
    .row
      .dashboard_block= render "dashboard/merge_requests_feed"

48
- if @issues.any?
49
50
  %div.dashboard_category
    %h3
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
51
      = link_to "Issues" , "#issues", :id => "issues"
52
53
      %small ( assigned to you )
    %strong.right
54
      = link_to dashboard_issues_path do 
55
        Visit issues page → 
56
57
58
    %hr
    .row
      .dashboard_block= render "dashboard/issues_feed"
59

60
- if @events.any?
61
62
  %div.dashboard_category
    %h3
63
      %span.ico.activities
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
64
      = link_to "Activities" , "#activities", :id => "activities"
65
66
67
68

    %hr
    .row
      .dashboard_block= render "dashboard/events_feed"