Retrospring/app/views/settings/data/index.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

108 lines
4.4 KiB
Plaintext
Raw Normal View History

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.mb-3
2022-02-18 14:36:24 -08:00
%h4= t(".section.profile")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.user.screen_name")
2020-04-25 08:04:23 -07:00
%p.text-muted= current_user.screen_name
%p.fw-bold.mb-0= t("activerecord.attributes.profile.display_name")
2020-04-25 08:04:23 -07:00
%p.text-muted
2022-02-18 15:48:14 -08:00
= current_user.profile.display_name.presence || t(".none")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.profile.description")
2020-04-25 08:04:23 -07:00
%p.text-muted
2022-02-18 15:48:14 -08:00
= current_user.profile.description.presence || t(".none")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.profile.location")
2020-04-25 08:04:23 -07:00
%p.text-muted
2022-02-18 15:48:14 -08:00
= current_user.profile.location.presence || t(".none")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.profile.website")
2020-04-25 08:04:23 -07:00
%p.text-muted
2022-02-18 15:48:14 -08:00
= current_user.profile.website.presence || t(".none")
.col-md-6.col-sm-6.col-xs-12.mb-3
2022-02-18 14:36:24 -08:00
%h4= t(".section.pictures")
%p.fw-bold.mb-0= t(".pictures.profile_picture.heading")
.d-flex.mb-3
.flex-shrink-0
2020-05-10 01:40:48 -07:00
%img.profile--img{ src: current_user.profile_picture.url(:medium) }
.flex-grow-1
2020-04-25 08:04:23 -07:00
%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
%p.fw-bold.mb-0= t(".pictures.profile_header.heading")
2022-02-18 15:48:14 -08: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.mb-3
2022-02-18 14:36:24 -08:00
%h3= t(".section.ip")
%p.fw-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
%p.fw-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.mb-3
2022-02-18 14:36:24 -08:00
%h3= t(".section.miscellaneous")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.user.locale")
2020-04-25 08:04:23 -07:00
%p.text-muted
2022-02-18 15:48:14 -08:00
= current_user.locale.presence || t(".none")
2020-04-25 08:04:23 -07:00
%p.fw-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
%p.fw-bold.mb-0= t("activerecord.attributes.user.current_sign_in_at")
2022-02-18 15:48:14 -08:00
%p.text-muted= current_user.current_sign_in_at ? localize(current_user.current_sign_in_at) : t(".none")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.user.last_sign_in_at")
2022-02-18 15:48:14 -08:00
%p.text-muted= current_user.last_sign_in_at ? localize(current_user.last_sign_in_at) : t(".none")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.user.remember_created_at")
2022-02-18 15:48:14 -08:00
%p.text-muted= current_user.remember_created_at ? localize(current_user.remember_created_at) : t(".none")
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
%p.fw-bold.mb-0= t("activerecord.attributes.user.created_at")
2020-04-25 08:04:23 -07:00
%p.text-muted
- if current_user.created_at
= localize(current_user.created_at)
2022-02-18 15:48:14 -08:00
= " (#{t('time.distance_ago', time: time_ago_in_words(current_user.created_at))})"
- else
2022-02-18 15:36:20 -08:00
= t(".none")
2020-04-25 08:04:23 -07:00
%p.fw-bold.mb-0= t("activerecord.attributes.user.updated at")
2020-04-25 08:04:23 -07:00
%p.text-muted
- if current_user.created_at
= localize(current_user.updated_at)
2022-02-18 15:48:14 -08:00
= " (#{t('time.distance_ago', time: time_ago_in_words(current_user.updated_at))})"
- else
2022-02-18 15:36:20 -08:00
= t(".none")
- provide(:title, generate_title(t(".title")))
- parent_layout "user/settings"