2015-05-01 09:33:54 +00:00
|
|
|
- page_title @user.name
|
|
|
|
- header_title @user.name, user_path(@user)
|
|
|
|
|
2015-04-21 14:31:40 +00:00
|
|
|
= content_for :meta_tags do
|
2015-04-21 15:03:23 +00:00
|
|
|
= auto_discovery_link_tag(:atom, user_url(@user, format: :atom), title: "#{@user.name} activity")
|
2015-04-21 14:31:40 +00:00
|
|
|
|
2015-04-26 22:43:02 +00:00
|
|
|
= render 'shared/show_aside'
|
|
|
|
|
2013-01-22 17:05:01 +00:00
|
|
|
.row
|
2015-08-26 08:36:08 +00:00
|
|
|
%section.col-md-7
|
2015-03-21 03:10:05 +00:00
|
|
|
.header-with-avatar
|
2015-06-30 13:23:32 +00:00
|
|
|
= link_to avatar_icon(@user.email, 400), target: '_blank' do
|
2015-03-21 15:15:14 +00:00
|
|
|
= image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: ''
|
2015-03-21 03:10:05 +00:00
|
|
|
%h3
|
|
|
|
= @user.name
|
|
|
|
- if @user == current_user
|
2015-06-08 14:54:39 +00:00
|
|
|
.pull-right.hidden-xs
|
2015-03-21 03:10:05 +00:00
|
|
|
= link_to profile_path, class: 'btn btn-sm' do
|
2015-09-15 07:54:42 +00:00
|
|
|
= icon('user')
|
|
|
|
Profile settings
|
2015-08-06 12:03:27 +00:00
|
|
|
- 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
|
|
|
|
|
2015-03-21 03:10:05 +00:00
|
|
|
.username
|
|
|
|
@#{@user.username}
|
|
|
|
.description
|
|
|
|
- if @user.bio.present?
|
|
|
|
= @user.bio
|
|
|
|
|
2013-01-22 17:05:01 +00:00
|
|
|
.clearfix
|
2014-06-03 09:44:22 +00:00
|
|
|
|
|
|
|
- if @groups.any?
|
2015-03-21 03:10:05 +00:00
|
|
|
.prepend-top-20
|
|
|
|
%h4 Groups
|
|
|
|
= render 'groups', groups: @groups
|
|
|
|
%hr
|
2015-01-29 08:53:43 +00:00
|
|
|
|
2015-03-08 19:05:15 +00:00
|
|
|
.hidden-xs
|
|
|
|
.user-calendar
|
|
|
|
%h4.center.light
|
|
|
|
%i.fa.fa-spinner.fa-spin
|
2015-03-13 10:39:26 +00:00
|
|
|
.user-calendar-activities
|
2015-03-08 19:05:15 +00:00
|
|
|
%hr
|
2014-12-04 19:49:19 +00:00
|
|
|
%h4
|
2015-01-30 01:13:28 +00:00
|
|
|
User Activity
|
2014-12-04 19:49:19 +00:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2015-03-22 22:40:26 +00:00
|
|
|
.content_list
|
|
|
|
= spinner
|
2015-08-26 08:36:08 +00:00
|
|
|
%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
|
2015-03-26 04:45:01 +00:00
|
|
|
$(".user-calendar").load("#{user_calendar_path}")
|