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

68 lines
1.9 KiB
Text
Raw Normal View History

2015-05-01 05:33:54 -04:00
- page_title @user.name
- header_title @user.name, user_path(@user)
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, user_url(@user, format: :atom), title: "#{@user.name} activity")
2015-04-26 18:43:02 -04:00
= render 'shared/show_aside'
2013-01-22 12:05:01 -05:00
.row
%section.col-md-7
.header-with-avatar
= link_to avatar_icon(@user.email, 400), target: '_blank' do
= image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: ''
%h3
= @user.name
- if @user == current_user
.pull-right.hidden-xs
= link_to profile_path, class: 'btn btn-sm' do
%i.fa.fa-pencil-square-o
Edit Profile settings
- elsif current_user
.pull-right
%span.dropdown
%a.light.dropdown-toggle.btn.btn-sm{href: '#', "data-toggle" => "dropdown"}
= icon('exclamation-circle')
%ul.dropdown-menu.dropdown-menu-right
%li
= link_to new_abuse_report_path(user_id: @user.id) do
Report abuse
.username
@#{@user.username}
.description
- if @user.bio.present?
= @user.bio
2013-01-22 12:05:01 -05: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-29 20:13:28 -05: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
.content_list
= spinner
%aside.col-md-5
2013-02-13 12:14:35 -05:00
= render 'profile', user: @user
2015-03-24 11:04:30 -04:00
= render 'projects', projects: @projects, contributed_projects: @contributed_projects
2015-01-29 04:20:17 -05:00
:coffeescript
$(".user-calendar").load("#{user_calendar_path}")