Skip to content

Instantly share code, notes, and snippets.

@angelsystem
Created April 9, 2014 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save angelsystem/10222117 to your computer and use it in GitHub Desktop.
Save angelsystem/10222117 to your computer and use it in GitHub Desktop.
- show ||= 'cards'
- if show == 'list'
= div_for user, class: 'user-list' do
.user-description
.user-avatar
= avatar(user, class: "user-img")
.user-info
= link_to user.name, "", class: "name"
%p.role= user.role_name
.social-user
- @followable = user
- if current_user == @followable
= link_to "Edit your profile", edit_user_registration_path, class: "default-button"
- else
= render 'follows/form_follow'
.clear
.clear
- else
= div_for user, class: 'user-card' do
- logo_url = Cloudinary::Utils.cloudinary_url(user.photo, :transformation => {:effect => "blur:1200"} )
.user-cover{style: "background-image: url(#{logo_url});"}
.user-info
= link_to short_user_path(user) do
= avatar(user, class: "user-rounded-photo")
.div
%p= user.username
%h3= user.role_name
.localization
%i.geo-icon-blue
%p.address= user.location
.social-user
- @followable = user
- if current_user == @followable
= link_to "Edit your profile", edit_user_registration_path, class: "default-button"
- else
= render 'follows/form_follow'
.clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment