2020-04-25 08:04:23 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
|
|
|
%h2 Your Profile Data
|
|
|
|
%p Everything we have about you! Really, not that much as you might expect.
|
|
|
|
|
|
|
|
%h3 General
|
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h4 Profile
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 User name
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.screen_name
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Display name
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
- if current_user.display_name.blank?
|
|
|
|
None set!
|
|
|
|
- else
|
|
|
|
= current_user.display_name
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Bio
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
- if current_user.bio.blank?
|
|
|
|
None set!
|
|
|
|
- else
|
|
|
|
= current_user.bio
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Location
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
- if current_user.location.blank?
|
|
|
|
None set!
|
|
|
|
- else
|
|
|
|
= current_user.location
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Website
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
- if current_user.website.blank?
|
|
|
|
None set!
|
|
|
|
- else
|
|
|
|
= current_user.website
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h4 Pictures
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Profile picture
|
2020-04-25 08:04:23 -07:00
|
|
|
.media
|
|
|
|
.pull-left
|
|
|
|
%img.profile--img{src: current_user.profile_picture.url(:medium)}
|
|
|
|
.media-body
|
|
|
|
%ul
|
|
|
|
%li
|
|
|
|
%a{href: current_user.profile_picture.url(:small)} Small
|
|
|
|
%li
|
|
|
|
%a{href: current_user.profile_picture.url(:medium)} Medium
|
|
|
|
%li
|
|
|
|
%a{href: current_user.profile_picture.url(:large)} Large
|
|
|
|
%li
|
|
|
|
%a{href: current_user.profile_picture.url(:original)} Original image
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Header picture
|
|
|
|
%img{src: current_user.profile_header.url(:mobile), style: 'width: 100%'}
|
2020-04-25 08:04:23 -07:00
|
|
|
%p
|
|
|
|
%a{href: current_user.profile_header.url(:mobile)} Mobile
|
|
|
|
|
|
|
|
|
%a{href: current_user.profile_header.url(:web)} Web
|
|
|
|
|
|
|
|
|
%a{href: current_user.profile_header.url(:retina)} Retina
|
|
|
|
|
|
|
|
|
%a{href: current_user.profile_header.url(:original)} Original image
|
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h4 Statistics
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Answers
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.answered_count
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Questions
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.asked_count
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Following
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.friend_count
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Followers
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.follower_count
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Smiles
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.smiled_count + current_user.comment_smiled_count
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Comments
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.commented_count
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h4 Badges
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Admin
|
2020-04-25 08:04:23 -07:00
|
|
|
%p
|
2020-04-29 05:49:24 -07:00
|
|
|
- if current_user.has_role? :administrator
|
2020-04-25 08:04:23 -07:00
|
|
|
%span.label.label-success
|
|
|
|
%i.fa.fa-fw.fa-check
|
|
|
|
- else
|
|
|
|
%span.label.label-danger
|
|
|
|
%i.fa.fa-fw.fa-close
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Moderator
|
2020-04-25 08:04:23 -07:00
|
|
|
%p
|
|
|
|
- if current_user.mod?
|
|
|
|
%span.label.label-success
|
|
|
|
%i.fa.fa-fw.fa-check
|
|
|
|
- else
|
|
|
|
%span.label.label-danger
|
|
|
|
%i.fa.fa-fw.fa-close
|
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h3 IP
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Current Sign In
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.current_sign_in_ip
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Last Sign In
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.last_sign_in_ip
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h3 Miscellaneous
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Locale
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
- if current_user.locale.blank?
|
|
|
|
None set!
|
|
|
|
- else
|
|
|
|
= current_user.locale
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Sign In count
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.sign_in_count
|
|
|
|
%h3 Dates
|
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h4 Sign In
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Current Sign In
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= localize(current_user.current_sign_in_at)
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Last Sign In
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= localize(current_user.last_sign_in_at)
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Remember me set at
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= localize(current_user.remember_created_at)
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
|
|
|
%h4 Create/Update
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Account created
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
= localize(current_user.created_at)
|
|
|
|
= " (#{time_ago_in_words(current_user.created_at)} ago)"
|
|
|
|
|
2020-04-29 05:49:24 -07:00
|
|
|
%p.font-weight-bold.mb-0 Account last updated
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
= localize(current_user.updated_at)
|
|
|
|
= " (#{time_ago_in_words(current_user.updated_at)} ago)"
|