Remove unnecessary styles for "data" page

This commit is contained in:
Andreas Nedbal 2020-04-29 14:49:24 +02:00
parent ea36f7e218
commit 56bef6a4aa
3 changed files with 26 additions and 38 deletions

View file

@ -17,8 +17,6 @@ body {
@import "scss/user"; @import "scss/user";
@import "scss/notifications"; @import "scss/notifications";
@import "scss/groups"; @import "scss/groups";
@import "scss/data";
@import "scss/mobile";
.j2-page { .j2-page {
padding-top: 30px; padding-top: 30px;

View file

@ -1,10 +0,0 @@
.data-heading {
margin-bottom: 0;
font-weight: bold;
font-size: 1.1em;
}
.data-header-preview {
height: auto;
width: 100%;
}

View file

@ -8,31 +8,31 @@
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h4 Profile %h4 Profile
%p.data-heading User name %p.font-weight-bold.mb-0 User name
%p.text-muted= current_user.screen_name %p.text-muted= current_user.screen_name
%p.data-heading Display name %p.font-weight-bold.mb-0 Display name
%p.text-muted %p.text-muted
- if current_user.display_name.blank? - if current_user.display_name.blank?
None set! None set!
- else - else
= current_user.display_name = current_user.display_name
%p.data-heading Bio %p.font-weight-bold.mb-0 Bio
%p.text-muted %p.text-muted
- if current_user.bio.blank? - if current_user.bio.blank?
None set! None set!
- else - else
= current_user.bio = current_user.bio
%p.data-heading Location %p.font-weight-bold.mb-0 Location
%p.text-muted %p.text-muted
- if current_user.location.blank? - if current_user.location.blank?
None set! None set!
- else - else
= current_user.location = current_user.location
%p.data-heading Website %p.font-weight-bold.mb-0 Website
%p.text-muted %p.text-muted
- if current_user.website.blank? - if current_user.website.blank?
None set! None set!
@ -40,7 +40,7 @@
= current_user.website = current_user.website
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h4 Pictures %h4 Pictures
%p.data-heading Profile picture %p.font-weight-bold.mb-0 Profile picture
.media .media
.pull-left .pull-left
%img.profile--img{src: current_user.profile_picture.url(:medium)} %img.profile--img{src: current_user.profile_picture.url(:medium)}
@ -55,8 +55,8 @@
%li %li
%a{href: current_user.profile_picture.url(:original)} Original image %a{href: current_user.profile_picture.url(:original)} Original image
%p.data-heading Header picture %p.font-weight-bold.mb-0 Header picture
%img.data-header-preview{src: current_user.profile_header.url(:mobile)} %img{src: current_user.profile_header.url(:mobile), style: 'width: 100%'}
%p %p
%a{href: current_user.profile_header.url(:mobile)} Mobile %a{href: current_user.profile_header.url(:mobile)} Mobile
| |
@ -69,36 +69,36 @@
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h4 Statistics %h4 Statistics
%p.data-heading Answers %p.font-weight-bold.mb-0 Answers
%p.text-muted= current_user.answered_count %p.text-muted= current_user.answered_count
%p.data-heading Questions %p.font-weight-bold.mb-0 Questions
%p.text-muted= current_user.asked_count %p.text-muted= current_user.asked_count
%p.data-heading Following %p.font-weight-bold.mb-0 Following
%p.text-muted= current_user.friend_count %p.text-muted= current_user.friend_count
%p.data-heading Followers %p.font-weight-bold.mb-0 Followers
%p.text-muted= current_user.follower_count %p.text-muted= current_user.follower_count
%p.data-heading Smiles %p.font-weight-bold.mb-0 Smiles
%p.text-muted= current_user.smiled_count + current_user.comment_smiled_count %p.text-muted= current_user.smiled_count + current_user.comment_smiled_count
%p.data-heading Comments %p.font-weight-bold.mb-0 Comments
%p.text-muted= current_user.commented_count %p.text-muted= current_user.commented_count
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h4 Badges %h4 Badges
%p.data-heading Admin %p.font-weight-bold.mb-0 Admin
%p %p
- if current_user.admin? - if current_user.has_role? :administrator
%span.label.label-success %span.label.label-success
%i.fa.fa-fw.fa-check %i.fa.fa-fw.fa-check
- else - else
%span.label.label-danger %span.label.label-danger
%i.fa.fa-fw.fa-close %i.fa.fa-fw.fa-close
%p.data-heading Moderator %p.font-weight-bold.mb-0 Moderator
%p %p
- if current_user.mod? - if current_user.mod?
%span.label.label-success %span.label.label-success
@ -109,45 +109,45 @@
.row .row
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h3 IP %h3 IP
%p.data-heading Current Sign In %p.font-weight-bold.mb-0 Current Sign In
%p.text-muted= current_user.current_sign_in_ip %p.text-muted= current_user.current_sign_in_ip
%p.data-heading Last Sign In %p.font-weight-bold.mb-0 Last Sign In
%p.text-muted= current_user.last_sign_in_ip %p.text-muted= current_user.last_sign_in_ip
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h3 Miscellaneous %h3 Miscellaneous
%p.data-heading Locale %p.font-weight-bold.mb-0 Locale
%p.text-muted %p.text-muted
- if current_user.locale.blank? - if current_user.locale.blank?
None set! None set!
- else - else
= current_user.locale = current_user.locale
%p.data-heading Sign In count %p.font-weight-bold.mb-0 Sign In count
%p.text-muted= current_user.sign_in_count %p.text-muted= current_user.sign_in_count
%h3 Dates %h3 Dates
.row .row
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h4 Sign In %h4 Sign In
%p.data-heading Current Sign In %p.font-weight-bold.mb-0 Current Sign In
%p.text-muted= localize(current_user.current_sign_in_at) %p.text-muted= localize(current_user.current_sign_in_at)
%p.data-heading Last Sign In %p.font-weight-bold.mb-0 Last Sign In
%p.text-muted= localize(current_user.last_sign_in_at) %p.text-muted= localize(current_user.last_sign_in_at)
%p.data-heading Remember me set at %p.font-weight-bold.mb-0 Remember me set at
%p.text-muted= localize(current_user.remember_created_at) %p.text-muted= localize(current_user.remember_created_at)
.col-md-6.col-sm-6.col-xs-12 .col-md-6.col-sm-6.col-xs-12
%h4 Create/Update %h4 Create/Update
%p.data-heading Account created %p.font-weight-bold.mb-0 Account created
%p.text-muted %p.text-muted
= localize(current_user.created_at) = localize(current_user.created_at)
= " (#{time_ago_in_words(current_user.created_at)} ago)" = " (#{time_ago_in_words(current_user.created_at)} ago)"
%p.data-heading Account last updated %p.font-weight-bold.mb-0 Account last updated
%p.text-muted %p.text-muted
= localize(current_user.updated_at) = localize(current_user.updated_at)
= " (#{time_ago_in_words(current_user.updated_at)} ago)" = " (#{time_ago_in_words(current_user.updated_at)} ago)"