show.html.haml 526 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1 2 3 4 5
.row
  .span8
    %h3.page_title
      = image_tag gravatar_icon(@user.email, 90), class: "avatar s90"
      = @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 12 13 14
      %br
      %small @#{@user.username}
      %br
      %small member since #{@user.created_at.stamp("Nov 12, 2031")}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15 16 17 18 19
    .clearfix
    %hr
    %h5 Recent events
    = render @events
  .span4
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
20
    = render 'profile'
21
    = render 'projects'