app/views/users/show.html.haml
- content_for :title do
User
= @user.name
.row
.col-sm-1
= image_tag(@user.gravatar_url(:size => "64"), :class => "img-thumbnail pull-left", :title => "#{@user.name}", :alt => @user.name)
.col-sm-11
%h1
= @user.name
.row
.col-sm-12
- if @user.location
%p
%i{class: 'fas fa-home', title: 'Location'}
= @user.location
- if current_user && !@user.hide_email?
%p
%i{class: 'fas fa-envelope', title: 'Email'}
= mail_to @user.email
.row
.col-sm-8
= render :partial => "users/tabs"
.tab-content{:style=>"padding-top: 10px"}
.tab-pane.active#projects
- if @projects.empty?
= render :partial => "empty_projects"
- else
= render :partial => "projects/list", locals: { projects: @projects }
.col-sm-4
.row
.col-sm-12
.text-center
= render :partial => "users/buttons", :locals => {:user => @user }
.row
.col-sm-12#keywords
%h4 Looking for projects around:
- if @user.keywords.empty?
%p Nothing at the moment
- else
= render :partial => "keywords/show", :locals => {:keywords => @user.keywords }
-if can? :add_keyword, @user
= render :partial => "keywords/new", :locals => {:what => @user }
.row
.col-sm-12
= render partial: 'updates/activity'