show.html.haml 561 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1 2 3
.row
  .span8
    %h3.page_title
4
      = image_tag gravatar_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 btn-small' do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9 10
            %i.icon-edit
            Edit Profile
11
      %br
12
      %small #{@user.username}
13 14
      %br
      %small member since #{@user.created_at.stamp("Nov 12, 2031")}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15 16
    .clearfix
    %hr
17
    %h5 User Activity:
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
18 19
    = render @events
  .span4
20 21
    = render 'profile', user: @user
    = render 'projects', user: @user