show.html.haml 1.35 KB
Newer Older
1
= content_for :meta_tags do
2
  = auto_discovery_link_tag(:atom, user_url(@user, format: :atom), title: "#{@user.name} activity")
3

4 5
= render 'shared/show_aside'

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6
.row
7
  %section.col-md-8
8
    .header-with-avatar
9
      = image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: ''
10 11 12 13 14 15 16 17 18 19 20 21 22
      %h3
        = @user.name
        - if @user == current_user
          .pull-right
            = link_to profile_path, class: 'btn btn-sm' do
              %i.fa.fa-pencil-square-o
              Edit Profile settings
      .username
        @#{@user.username}
      .description
        - if @user.bio.present?
          = @user.bio

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
23
    .clearfix
24 25

    - if @groups.any?
26 27 28 29
      .prepend-top-20
        %h4 Groups
        = render 'groups', groups: @groups
        %hr
30

31 32 33 34
    .hidden-xs
      .user-calendar
        %h4.center.light
          %i.fa.fa-spinner.fa-spin
35
      .user-calendar-activities
36
      %hr
37
    %h4
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
38
      User Activity
39 40 41 42 43 44 45

      - if current_user
        %span.rss-icon.pull-right
          = link_to user_path(@user, :atom, { private_token: current_user.private_token }) do
            %strong
              %i.fa.fa-rss

46 47
    .content_list
    = spinner
48
  %aside.col-md-4
49
    = render 'profile', user: @user
Douwe Maan's avatar
Douwe Maan committed
50
    = render 'projects', projects: @projects, contributed_projects: @contributed_projects
51 52

:coffeescript
53
  $(".user-calendar").load("#{user_calendar_path}")