.user-details.row id="user-#{tutor.id}" .col-sm-12.col-xs-12.no-padding .col-xs-12.col-sm-12 .mt15.fs18.semibold .pull-left - if tutor != current_user = link_to profile_path(tutor) = tutor.full_name.try(:titleize) - else .user-name class = "user-name-#{tutor.id}" = tutor.full_name.try(:titleize) - if current_user and current_user.id == tutor.id and params[:controller] == 'dashboard' = link_to edit_settings_path(partial: 'settings/popover/edit'), class: 'edit-popover pull-left pl5',id:'edit-personal-details', data: {placement: 'bottom', toggle: :tooltip, title: 'Edit Details'} i.fa.fa-pencil.fs10.edit-badge .clearfix .col-sm-12.col-xs-12.mb10.no-padding ul.col-sm-7.col-xs-12.education-fields .personal-details class = "personal-details-#{tutor.id}" = render 'tutors/profile_details', tutor: tutor - if tutor.tutor? .col-sm-5.col-xs-12.no-padding.hide ul.col-xs-12.no-padding.edit-rate class="#{ 'col-sm-6' if tutor.recieved_reviews.exists?}" li.numbers - if current_user and current_user.id == tutor.id and params[:controller] == 'dashboard' .editable-input data-toggle="tooltip" title="Edit" span $ = link_to "#{tutor.rate_in_cents/100}", '#', id: :rate, data: {type: :text, resource: :tutor, name: :rate, url: settings_path}, class: 'x-editable' - else = "$#{tutor.rate}" li.text-center.fs10 = "#{tutor.name}'s hourly Tutoring Wage" - if tutor.recieved_reviews.exists? ul.col-sm-6.col-xs-12.no-padding li.numbers = tutor.average_rating.round(2) li.text-center.fs10 = "#{tutor.name}'s User Rating"