show.html.haml 1.2 KB
Newer Older
D
Dmitriy Zaporozhets 已提交
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

D
Dmitriy Zaporozhets 已提交
20
    .clearfix
D
Dmitriy Zaporozhets 已提交
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
D
Dmitriy Zaporozhets 已提交
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
47
    = render 'projects'
48 49 50 51

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