gitlab-org--gitlab-foss/app/views/users/show.html.haml

51 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-01-22 17:05:01 +00:00
.row
= link_to '#aside', class: 'show-aside' do
%i.fa.fa-angle-left
%section.col-md-8
.header-with-avatar
= image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: ''
%h3
= @user.name
- if @user == current_user
.pull-right
= link_to profile_path, class: 'btn btn-sm' do
%i.fa.fa-pencil-square-o
Edit Profile settings
.username
@#{@user.username}
.description
- if @user.bio.present?
= @user.bio
2013-01-22 17:05:01 +00:00
.clearfix
- if @groups.any?
.prepend-top-20
%h4 Groups
= render 'groups', groups: @groups
%hr
.hidden-xs
.user-calendar
%h4.center.light
%i.fa.fa-spinner.fa-spin
.user-calendar-activities
%hr
%h4
2015-01-30 01:13:28 +00:00
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
2013-01-22 17:05:01 +00:00
= render @events
%aside.col-md-4
2013-02-13 17:14:35 +00:00
= render 'profile', user: @user
= render 'projects'
2015-01-29 09:20:17 +00:00
:coffeescript
$ ->
$(".user-calendar").load("#{user_calendar_path}")