2013-01-22 17:05:01 +00:00
|
|
|
.row
|
2013-12-30 21:55:15 +00:00
|
|
|
.col-md-8
|
2013-07-13 05:45:48 +00:00
|
|
|
%h3.page-title
|
2015-01-30 01:30:51 +00:00
|
|
|
= image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: ''
|
2013-01-22 17:05:01 +00:00
|
|
|
= @user.name
|
2013-01-24 15:47:09 +00:00
|
|
|
- if @user == current_user
|
2013-01-30 14:40:43 +00:00
|
|
|
.pull-right
|
2013-08-27 10:11:05 +00:00
|
|
|
= link_to profile_path, class: 'btn' do
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-pencil-square-o
|
2013-10-10 08:43:24 +00:00
|
|
|
Edit Profile settings
|
2013-01-22 17:45:13 +00:00
|
|
|
%br
|
2014-01-08 17:57:35 +00:00
|
|
|
%span.user-show-username #{@user.username}
|
2013-01-22 17:45:13 +00:00
|
|
|
%br
|
|
|
|
%small member since #{@user.created_at.stamp("Nov 12, 2031")}
|
2013-01-22 17:05:01 +00:00
|
|
|
.clearfix
|
2014-06-03 09:44:22 +00:00
|
|
|
|
|
|
|
- if @groups.any?
|
2015-01-30 01:13:28 +00:00
|
|
|
%h4 Groups
|
2014-06-03 09:44:22 +00:00
|
|
|
= render 'groups', groups: @groups
|
|
|
|
%hr
|
2015-01-29 08:53:43 +00:00
|
|
|
|
2015-01-29 09:20:17 +00:00
|
|
|
.user-calendar
|
|
|
|
%h4.center.light
|
|
|
|
%i.fa.fa-spinner.fa-spin
|
2015-01-29 08:53:43 +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
|
2013-12-30 21:55:15 +00:00
|
|
|
.col-md-4
|
2013-02-13 17:14:35 +00:00
|
|
|
= render 'profile', user: @user
|
2014-05-30 15:22:59 +00:00
|
|
|
- if @projects.present?
|
2014-06-03 09:44:22 +00:00
|
|
|
= render 'projects', projects: @projects
|
2015-01-29 09:20:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
:coffeescript
|
|
|
|
$ ->
|
|
|
|
$(".user-calendar").load("#{user_calendar_path}")
|