2013-01-22 12:05:01 -05:00
|
|
|
.row
|
2015-03-08 15:05:15 -04:00
|
|
|
= link_to '#aside', class: 'show-aside' do
|
|
|
|
%i.fa.fa-angle-left
|
|
|
|
%section.col-md-8
|
2015-03-20 23:10:05 -04:00
|
|
|
.header-with-avatar
|
2015-01-29 20:30:51 -05: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
|
|
|
|
.pull-right
|
|
|
|
= link_to profile_path, class: 'btn btn-sm' do
|
|
|
|
%i.fa.fa-pencil-square-o
|
|
|
|
Edit Profile settings
|
|
|
|
.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-03-08 15:05:15 -04:00
|
|
|
%aside.col-md-4
|
2013-02-13 12:14:35 -05:00
|
|
|
= render 'profile', user: @user
|
2015-02-18 01:40:00 -05:00
|
|
|
= render 'projects'
|
2015-01-29 04:20:17 -05:00
|
|
|
|
|
|
|
:coffeescript
|
2015-03-26 00:45:01 -04:00
|
|
|
$(".user-calendar").load("#{user_calendar_path}")
|