From 8d4d2ffce19442cc3ada31caa655bc4ba8865946 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Wed, 29 Mar 2017 15:29:07 -0700 Subject: [PATCH] apply changes to groups page, adjust heading for header --- app/assets/stylesheets/base.css.scss | 4 ++-- app/views/user/groups.html.haml | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/base.css.scss b/app/assets/stylesheets/base.css.scss index c02b7fc1..54ea3ee1 100644 --- a/app/assets/stylesheets/base.css.scss +++ b/app/assets/stylesheets/base.css.scss @@ -63,7 +63,7 @@ body { } .j2-lh { - color: $main-color; + margin-top: 48px; } .about--moderator { padding-left: 0px; @@ -302,4 +302,4 @@ body { display: -webkit-flex; display: -ms-flexbox; display: flex; -} \ No newline at end of file +} diff --git a/app/views/user/groups.html.haml b/app/views/user/groups.html.haml index 39a5999a..34cf914f 100644 --- a/app/views/user/groups.html.haml +++ b/app/views/user/groups.html.haml @@ -1,5 +1,8 @@ -.profile--header -.container.j2-page +- provide(:title, user_title(@user, "groups")) +- 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.headerable{class: no_header} .col-md-3.col-xs-12.col-sm-4 = render 'user/profile_info' .hidden-xs= render 'shared/links' @@ -16,4 +19,4 @@ .visible-xs= render 'shared/links' - if user_signed_in? - = render 'user/modal_group_memberships' \ No newline at end of file + = render 'user/modal_group_memberships'