show.html.haml 654 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
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9
            %i.icon-edit
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
    %h4 Groups:
17
    = render 'groups', groups: @groups
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
18
    %hr
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
19
    %h4 User Activity:
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
20
    = render @events
21
  .col-md-4
22
    = render 'profile', user: @user
23 24
    - if @projects.present?
      = render 'projects'