From f345f8628fc6a6924bec4fd5a78ea18792806bfe Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Wed, 29 Mar 2017 15:18:11 -0700 Subject: [PATCH] add header to other profile sections --- app/views/user/questions.html.haml | 4 +++- app/views/user/show_follow.html.haml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/user/questions.html.haml b/app/views/user/questions.html.haml index 4691417f..488811ab 100644 --- a/app/views/user/questions.html.haml +++ b/app/views/user/questions.html.haml @@ -1,5 +1,7 @@ - provide(:title, questions_title(@user)) -.profile--header +- no_header = unless @user.profile_header.exists? then "profile--no-header" else "" end +#profile--header{class: no_header} + %img.profile--header-img{src: @user.profile_header.url(:web)} .container.j2-page .col-md-3.col-xs-12.col-sm-4.j2-col-reset = render 'user/profile_info' diff --git a/app/views/user/show_follow.html.haml b/app/views/user/show_follow.html.haml index 0b5f1479..9406272a 100644 --- a/app/views/user/show_follow.html.haml +++ b/app/views/user/show_follow.html.haml @@ -1,5 +1,7 @@ - provide(:title, user_title(@user, "friends and followers")) -.profile--header +- no_header = unless @user.profile_header.exists? then "profile--no-header" else "" end +#profile--header{class: no_header} + %img.profile--header-img{src: @user.profile_header.url(:web)} .container.j2-page .col-md-3.col-xs-12.col-sm-4.j2-col-reset = render 'user/profile_info'