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