Some fixes (whoops used current_user instead of user)

This commit is contained in:
Yuki 2015-05-08 21:34:58 +05:30
parent 975909f197
commit 9633511859
2 changed files with 10 additions and 7 deletions

View File

@ -36,6 +36,10 @@
background-color: darken($navbar-inverse-bg, 10%);
}
#profile--header.profile--no-header {
position: absolute;
}
.profile--panel .panel-heading {
color: $brand-primary;
border-bottom: 2px solid $brand-primary;
@ -99,7 +103,7 @@ $colours: danger $brand-danger,
text-decoration: line-through !important;
}
.profile--panel-push-inner {
.profile--panel-push-inner:not(.profile--no-header) {
display: block;
height: 60px;
}
@ -111,7 +115,7 @@ $colours: danger $brand-danger,
}
@media(min-width: 767px) {
.container.headerable {
.container.headerable:not(.profile--no-header) {
padding-top: 0;
margin-top: -30px;
}

View File

@ -1,12 +1,11 @@
#profile--header.hidden-xs
%img.profile--header-img{src: current_user.profile_header.url(:web)}
#profile--panel-push-n.hidden-xs
.container.j2-page.headerable
#profile--header.hidden-xs{class: unless @user.profile_header.exists? then "profile--no-header" end}
%img.profile--header-img{src: @user.profile_header.url(:web)}
.container.j2-page.headerable{class: unless @user.profile_header.exists? then "profile--no-header" end}
.col-md-3.col-xs-12.col-sm-4.j2-col-reset
= render 'user/profile_info'
.hidden-xs= render 'shared/links'
.col-md-9.col-xs-12.col-sm-8.j2-col-reset
.profile--panel-push-inner.hidden-xs
.profile--panel-push-inner.hidden-xs{class: unless @user.profile_header.exists? then "profile--no-header" end}
= render 'shared/questionbox'
- unless @user.banned?
#answers