summaryrefslogtreecommitdiff
path: root/app/views/dashboard/index.html.haml
blob: ba7d019cb638ff9ba7f6310cd04ac39b2a9bb655 (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
- if @projects.any?
  .projects
    .activities.span8
      = render 'shared/no_ssh'
      - if @events.any?
        .content_list= render @events
      - else
        %h4.nothing_here_message Projects activity will be displayed here
      .loading.hide
    .side
      = render "events/event_last_push", event: @last_push
      .projects_box
        %h5
          Projects
          %small
            (#{@projects.total_count})
          - if current_user.can_create_project?
            %span.right
              = link_to new_project_path, class: "btn very_small info" do
                %i.icon-plus
                New Project
        - @projects.each do |project|
          = link_to project_path(project), class: dom_class(project) do
            %h4
              %span.ico.project
              = truncate(project.name, length: 25)
              %span.right
                →
        .bottom= paginate @projects, theme: "gitlab"

      %hr
      %div
        %span.rss-icon
          = link_to dashboard_path(:atom, { private_token: current_user.private_token }) do
            = image_tag "rss_ui.png", title: "feed"
            %strong News Feed

- else
  %h3.nothing_here_message There are no projects you have access to.
  %br
  %h4.nothing_here_message
    - if current_user.can_create_project?
      You can create up to
      = current_user.projects_limit
      projects. Click on button below to add a new one
      .link_holder
        = link_to new_project_path, class: "btn primary" do
          New Project ยป
    - else
      If you will be added to project - it will be displayed here


:javascript
  $(function(){ Pager.init(20); });