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

68 lines
1.9 KiB
Plaintext
Raw Normal View History

2015-05-01 09:33:54 +00: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 22:43:02 +00:00
= render 'shared/show_aside'
2013-01-22 17:05:01 +00: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
= icon('user')
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 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
.content_list
= spinner
%aside.col-md-5
2013-02-13 17:14:35 +00:00
= render 'profile', user: @user
2015-03-24 15:04:30 +00:00
= render 'projects', projects: @projects, contributed_projects: @contributed_projects
2015-01-29 09:20:17 +00:00
:coffeescript
$(".user-calendar").load("#{user_calendar_path}")