Created
April 9, 2014 02:58
-
-
Save angelsystem/10222117 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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