2013-01-22 17:05:01 +00:00
|
|
|
.row
|
2015-03-08 19:05:15 +00:00
|
|
|
= link_to '#aside', class: 'show-aside' do
|
|
|
|
%i.fa.fa-angle-left
|
|
|
|
%section.col-md-8
|
2015-03-21 03:10:05 +00:00
|
|
|
.header-with-avatar
|
2015-01-30 01:30:51 +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
|
|
|
|
.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 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
|
|
|
|
|
2013-01-22 17:05:01 +00:00
|
|
|
= render @events
|
2015-03-08 19:05:15 +00:00
|
|
|
%aside.col-md-4
|
2013-02-13 17:14:35 +00:00
|
|
|
= render 'profile', user: @user
|
2015-02-18 06:40:00 +00:00
|
|
|
= render 'projects'
|
2015-01-29 09:20:17 +00:00
|
|
|
|
|
|
|
:coffeescript
|
|
|
|
$ ->
|
|
|
|
$(".user-calendar").load("#{user_calendar_path}")
|