summaryrefslogtreecommitdiff
path: root/app/views/users/_overview.html.haml
blob: f8b3754840dabeaa817fa9d030a4d8c4479fb4a5 (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
.row
  .col-md-12.col-lg-6
    .calendar-block
      .content-block.hide-bottom-border
        %h4
          = s_('UserProfile|Activity')
        .user-calendar.d-none.d-sm-block.text-left{ data: { calendar_path: user_calendar_path(@user, :json), calendar_activities_path: user_calendar_activities_path, utc_offset: Time.zone.utc_offset } }
          %h4.center.light
            %i.fa.fa-spinner.fa-spin
        .user-calendar-activities.d-none.d-sm-block

    - if can?(current_user, :read_cross_project)
      .activities-block
        .content-block
          %h5.prepend-top-10
            = s_('UserProfile|Recent contributions')
          .overview-content-list{ data: { href: user_path } }
            .center.light.loading
              %i.fa.fa-spinner.fa-spin
        .prepend-top-10
          = link_to s_('UserProfile|View all'), user_activity_path, class: "hide js-view-all"

  .col-md-12.col-lg-6
    .projects-block
      .content-block
        %h4
          = s_('UserProfile|Personal projects')
        .overview-content-list{ data: { href: user_projects_path } }
          .center.light.loading
            %i.fa.fa-spinner.fa-spin
      .prepend-top-10
        = link_to s_('UserProfile|View all'), user_projects_path, class: "hide js-view-all"