show.html.haml 1.06 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
.row
2
  .col-md-8
3
    %h3.page-title
4
      = image_tag avatar_icon(@user.email, 90), class: "avatar s90", alt: ''
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5
      = @user.name
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6
      - if @user == current_user
7
        .pull-right
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
8
          = link_to profile_path, class: 'btn' do
9
            %i.fa.fa-pencil-square-o
10
            Edit Profile settings
11
      %br
12
      %span.user-show-username #{@user.username}
13 14
      %br
      %small member since #{@user.created_at.stamp("Nov 12, 2031")}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15
    .clearfix
16 17

    - if @groups.any?
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
18
      %h4 Groups
19 20
      = render 'groups', groups: @groups
      %hr
21

22 23 24
    .user-calendar
      %h4.center.light
        %i.fa.fa-spinner.fa-spin
25
    %hr
26
    %h4
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
27
      User Activity
28 29 30 31 32 33 34

      - 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

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
35
    = render @events
36
  .col-md-4
37
    = render 'profile', user: @user
38
    - if @projects.present?
39
      = render 'projects', projects: @projects
40 41 42 43 44


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