2020-04-25 08:04:23 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-02-18 14:36:24 -08:00
|
|
|
%h2= t(".heading")
|
|
|
|
%p= t(".body")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%h3= t(".section.general")
|
2020-04-25 08:04:23 -07:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
2022-02-18 14:36:24 -08:00
|
|
|
%h4= t(".section.profile")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.screen_name")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.screen_name
|
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.display_name")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
2021-12-19 08:10:05 -08:00
|
|
|
- if current_user.profile.display_name.blank?
|
2020-04-25 08:04:23 -07:00
|
|
|
None set!
|
|
|
|
- else
|
2021-12-19 08:10:05 -08:00
|
|
|
= current_user.profile.display_name
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.description")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
2021-12-19 08:10:05 -08:00
|
|
|
- if current_user.profile.description.blank?
|
2020-04-25 08:04:23 -07:00
|
|
|
None set!
|
|
|
|
- else
|
2021-12-19 08:10:05 -08:00
|
|
|
= current_user.profile.description
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.location")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
2021-12-19 08:10:05 -08:00
|
|
|
- if current_user.profile.location.blank?
|
2020-04-25 08:04:23 -07:00
|
|
|
None set!
|
|
|
|
- else
|
2021-12-19 08:10:05 -08:00
|
|
|
= current_user.profile.location
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.profile.website")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
2021-12-19 08:10:05 -08:00
|
|
|
- if current_user.profile.website.blank?
|
2020-04-25 08:04:23 -07:00
|
|
|
None set!
|
|
|
|
- else
|
2021-12-19 08:10:05 -08:00
|
|
|
= current_user.profile.website
|
2020-04-25 08:04:23 -07:00
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
2022-02-18 14:36:24 -08:00
|
|
|
%h4= t(".section.pictures")
|
|
|
|
%p.font-weight-bold.mb-0= t(".pictures.profile_picture.heading")
|
2020-04-25 08:04:23 -07:00
|
|
|
.media
|
|
|
|
.pull-left
|
2020-05-10 01:40:48 -07:00
|
|
|
%img.profile--img{ src: current_user.profile_picture.url(:medium) }
|
2020-04-25 08:04:23 -07:00
|
|
|
.media-body
|
|
|
|
%ul
|
|
|
|
%li
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_picture.url(:small) }= t(".pictures.profile_picture.size.small")
|
2020-04-25 08:04:23 -07:00
|
|
|
%li
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_picture.url(:medium) }= t(".pictures.profile_picture.size.medium")
|
2020-04-25 08:04:23 -07:00
|
|
|
%li
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_picture.url(:large) }= t(".pictures.profile_picture.size.large")
|
2020-04-25 08:04:23 -07:00
|
|
|
%li
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_picture.url(:original) }= t(".pictures.profile_picture.size.original")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t(".pictures.profile_header.heading")
|
2020-05-10 01:40:48 -07:00
|
|
|
%img{ src: current_user.profile_header.url(:mobile), style: 'width: 100%' }
|
2020-04-25 08:04:23 -07:00
|
|
|
%p
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_header.url(:mobile) }= t(".pictures.profile_header.size.mobile")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_header.url(:web) }= t(".pictures.profile_header.size.web")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_header.url(:retina) }= t(".pictures.profile_header.size.retina")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%a{ href: current_user.profile_header.url(:original) }= t(".pictures.profile_header.size.original")
|
2020-04-25 08:04:23 -07:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
2022-02-18 14:36:24 -08:00
|
|
|
%h3= t(".section.ip")
|
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.current_sign_in_ip")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.current_sign_in_ip
|
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.last_sign_in_ip")
|
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
|
2022-02-18 14:36:24 -08:00
|
|
|
%h3= t(".section.miscellaneous")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.locale")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
|
|
|
- if current_user.locale.blank?
|
|
|
|
None set!
|
|
|
|
- else
|
|
|
|
= current_user.locale
|
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.sign_in_count")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted= current_user.sign_in_count
|
2022-02-18 14:36:24 -08:00
|
|
|
%h3= t(".section.dates")
|
2020-04-25 08:04:23 -07:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
2022-02-18 14:36:24 -08:00
|
|
|
%h4= t(".section.sign_in")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.current_sign_in_at")
|
2020-05-10 01:40:48 -07:00
|
|
|
%p.text-muted= current_user.current_sign_in_at ? localize(current_user.current_sign_in_at) : 'Not set'
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.last_sign_in_at")
|
2020-05-10 01:40:48 -07:00
|
|
|
%p.text-muted= current_user.last_sign_in_at ? localize(current_user.last_sign_in_at) : 'Not set'
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.remember_created_at")
|
2020-05-10 01:40:48 -07:00
|
|
|
%p.text-muted= current_user.remember_created_at ? localize(current_user.remember_created_at) : 'Not set'
|
2020-04-25 08:04:23 -07:00
|
|
|
.col-md-6.col-sm-6.col-xs-12
|
2022-02-18 14:36:24 -08:00
|
|
|
%h4= t(".section.create_update")
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.created_at")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
2020-05-08 17:18:23 -07:00
|
|
|
- if current_user.created_at
|
|
|
|
= localize(current_user.created_at)
|
|
|
|
= " (#{time_ago_in_words(current_user.created_at)} ago)"
|
|
|
|
- else
|
|
|
|
Not set
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2022-02-18 14:36:24 -08:00
|
|
|
%p.font-weight-bold.mb-0= t("activerecord.attributes.user.updated at")
|
2020-04-25 08:04:23 -07:00
|
|
|
%p.text-muted
|
2020-05-08 17:18:23 -07:00
|
|
|
- if current_user.created_at
|
|
|
|
= localize(current_user.updated_at)
|
|
|
|
= " (#{time_ago_in_words(current_user.updated_at)} ago)"
|
|
|
|
- else
|
|
|
|
Not set
|