show.html.haml 978 Bytes
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 18 19 20

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

22
    %h4 Calendar:
23 24
    %div= render 'calendar'
    %hr
25 26 27 28 29 30 31 32 33
    %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

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
34
    = render @events
35
  .col-md-4
36
    = render 'profile', user: @user
37
    - if @projects.present?
38
      = render 'projects', projects: @projects