show.html.haml 1.26 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
.row
2 3 4
  = link_to '#aside', class: 'show-aside' do
    %i.fa.fa-angle-left
  %section.col-md-8
5
    .header-with-avatar
6
      = image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: ''
7 8 9 10 11 12 13 14 15 16 17 18 19
      %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
20
    .clearfix
21 22

    - if @groups.any?
23 24 25 26
      .prepend-top-20
        %h4 Groups
        = render 'groups', groups: @groups
        %hr
27

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

      - 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

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

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