show.html.haml 716 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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
21
    %h4 User Activity:
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
22
    = render @events
23
  .col-md-4
24
    = render 'profile', user: @user
25
    - if @projects.present?
26
      = render 'projects', projects: @projects