summaryrefslogtreecommitdiff
path: root/app/views/users/show.html.haml
blob: 0576c6a11b9c26d753e79eb3c34aed79d61d43c2 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
= content_for :meta_tags do
  = auto_discovery_link_tag(:atom, user_url(@user, format: :atom), title: "#{@user.name} activity")

= render 'shared/show_aside'

.row
  %section.col-md-8
    .header-with-avatar
      = image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: ''
      %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

    .clearfix

    - if @groups.any?
      .prepend-top-20
        %h4 Groups
        = render 'groups', groups: @groups
        %hr

    .hidden-xs
      .user-calendar
        %h4.center.light
          %i.fa.fa-spinner.fa-spin
      .user-calendar-activities
      %hr
    %h4
      User Activity

      - 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

    .content_list
    = spinner
  %aside.col-md-4
    = render 'profile', user: @user
    = render 'projects', projects: @projects, contributed_projects: @contributed_projects

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