debian-mirror-gitlab/app/views/users/show.html.haml

67 lines
2 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- 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")
= render 'shared/show_aside'
2014-09-02 18:07:02 +05:30
.row
2015-09-25 12:07:36 +05:30
%section.col-md-7
2015-04-26 12:48:37 +05:30
.header-with-avatar
2015-10-24 18:46:33 +05:30
= link_to avatar_icon(@user, 400), target: '_blank' do
= image_tag avatar_icon(@user, 90), class: "avatar avatar-tile s90", alt: ''
2015-04-26 12:48:37 +05:30
%h3
= @user.name
- if @user == current_user
2015-09-11 14:41:01 +05:30
.pull-right.hidden-xs
2015-04-26 12:48:37 +05:30
= link_to profile_path, class: 'btn btn-sm' do
2015-09-25 12:07:36 +05:30
= icon('user')
Profile settings
2015-09-11 14:41:01 +05:30
- elsif current_user
2015-10-24 18:46:33 +05:30
.report_abuse.pull-right
- if @user.abuse_report
%span#report_abuse_btn.light.btn.btn-sm.btn-close{title: 'Already reported for abuse', data: {toggle: 'tooltip', placement: 'right', container: 'body'}}
= icon('exclamation-circle')
- else
%a.light.btn.btn-sm{href: new_abuse_report_path(user_id: @user.id), title: 'Report abuse', data: {toggle: 'tooltip', placement: 'right', container: 'body'}}
2015-09-11 14:41:01 +05:30
= icon('exclamation-circle')
2015-04-26 12:48:37 +05:30
.username
@#{@user.username}
.description
- if @user.bio.present?
= @user.bio
2014-09-02 18:07:02 +05:30
.clearfix
- if @groups.any?
2015-04-26 12:48:37 +05:30
.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
2014-09-02 18:07:02 +05:30
%hr
2015-04-26 12:48:37 +05:30
%h4
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
2015-09-25 12:07:36 +05:30
%aside.col-md-5
2014-09-02 18:07:02 +05:30
= render 'profile', user: @user
2015-04-26 12:48:37 +05:30
= render 'projects', projects: @projects, contributed_projects: @contributed_projects
:coffeescript
$(".user-calendar").load("#{user_calendar_path}")