User can create group
This commit is contained in:
parent
d9027df5b5
commit
f6c482c06f
12 changed files with 117 additions and 31 deletions
23
app/views/users/_profile.html.haml
Normal file
23
app/views/users/_profile.html.haml
Normal file
|
@ -0,0 +1,23 @@
|
|||
.ui-box
|
||||
%h5.title
|
||||
Profile
|
||||
%ul.well-list
|
||||
%li
|
||||
%strong Email
|
||||
%span.right= mail_to @user.email
|
||||
- unless @user.skype.blank?
|
||||
%li
|
||||
%strong Skype
|
||||
%span.right= @user.skype
|
||||
- unless @user.linkedin.blank?
|
||||
%li
|
||||
%strong LinkedIn
|
||||
%span.right= @user.linkedin
|
||||
- unless @user.twitter.blank?
|
||||
%li
|
||||
%strong Twitter
|
||||
%span.right= @user.twitter
|
||||
- unless @user.bio.blank?
|
||||
%li
|
||||
%strong Bio
|
||||
%span.right= @user.bio
|
|
@ -3,6 +3,11 @@
|
|||
%h3.page_title
|
||||
= image_tag gravatar_icon(@user.email, 90), class: "avatar s90"
|
||||
= @user.name
|
||||
- if @user == current_user
|
||||
.right
|
||||
= link_to profile_path, class: 'btn small' do
|
||||
%i.icon-edit
|
||||
Edit Profile
|
||||
%br
|
||||
%small @#{@user.username}
|
||||
%br
|
||||
|
@ -12,26 +17,5 @@
|
|||
%h5 Recent events
|
||||
= render @events
|
||||
.span4
|
||||
.ui-box
|
||||
%h5.title Profile
|
||||
%ul.well-list
|
||||
%li
|
||||
%strong Email
|
||||
%span.right= mail_to @user.email
|
||||
- unless @user.skype.blank?
|
||||
%li
|
||||
%strong Skype
|
||||
%span.right= @user.skype
|
||||
- unless @user.linkedin.blank?
|
||||
%li
|
||||
%strong LinkedIn
|
||||
%span.right= @user.linkedin
|
||||
- unless @user.twitter.blank?
|
||||
%li
|
||||
%strong Twitter
|
||||
%span.right= @user.twitter
|
||||
- unless @user.bio.blank?
|
||||
%li
|
||||
%strong Bio
|
||||
%span.right= @user.bio
|
||||
= render 'profile'
|
||||
= render 'projects'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue