index.html.haml 1.6 KB
Newer Older
1
- if @projects.any?
2 3
  .projects
    .activities.span8
4
      = render "events/event_last_push", event: @last_push
5
      = render 'shared/no_ssh'
6 7 8 9 10 11 12

      .event_filter
        = event_filter_link EventFilter.push, 'Push events'
        = event_filter_link EventFilter.merged, 'Merge events'
        = event_filter_link EventFilter.comments, 'Comments'
        = event_filter_link EventFilter.team, 'Team'

13
      - if @events.any?
R
randx 已提交
14
        .content_list= render @events
15
      - else
16
        %p.nothing_here_message Projects activity will be displayed here
R
randx 已提交
17
      .loading.hide
18
    .side
R
randx 已提交
19
      - if @groups.present?
D
Dmitriy Zaporozhets 已提交
20 21
        = render "groups", groups: @groups
      = render "projects", projects: @projects
R
randx 已提交
22 23
      %div
        %span.rss-icon
24 25
          = link_to dashboard_path(:atom, { private_token: current_user.private_token }) do
            = image_tag "rss_ui.png", title: "feed"
R
randx 已提交
26 27
            %strong News Feed

28 29 30 31 32 33 34
      %hr
      .gitlab-promo
        = link_to "Homepage", "http://gitlabhq.com"
        = link_to "Blog", "http://blog.gitlabhq.com"
        = link_to "@gitlabhq", "https://twitter.com/gitlabhq"


35
- else
36
  %h3.nothing_here_message There are no projects you have access to.
37
  %br
38 39
  %h4.nothing_here_message
    - if current_user.can_create_project?
40 41
      You can create up to
      = current_user.projects_limit
42
      projects. Click on button below to add a new one
43
      .link_holder
44
        = link_to new_project_path, class: "btn primary" do
45
          New Project »
46 47
    - else
      If you will be added to project - it will be displayed here
R
randx 已提交
48 49


50
:javascript
R
randx 已提交
51
  $(function(){ Pager.init(20); });