diff --git a/Changelog.md b/Changelog.md index a45c99f08..b4f8e0e2a 100644 --- a/Changelog.md +++ b/Changelog.md @@ -21,6 +21,7 @@ * Add podmin mail address to the footer [#8242](https://github.com/diaspora/diaspora/pull/8242) * Add username to password-reset mail [#8037](https://github.com/diaspora/diaspora/pull/8037) * Resend account migration and deletion for closed recipients [#8309](https://github.com/diaspora/diaspora/pull/8309) +* Add sharing status to hovercards [#8317](https://github.com/diaspora/diaspora/pull/8317) # 0.7.15.0 diff --git a/app/assets/javascripts/app/helpers/handlebars-helpers.js b/app/assets/javascripts/app/helpers/handlebars-helpers.js index a6ed3de0c..0a33008ee 100644 --- a/app/assets/javascripts/app/helpers/handlebars-helpers.js +++ b/app/assets/javascripts/app/helpers/handlebars-helpers.js @@ -44,7 +44,7 @@ Handlebars.registerHelper('linkToPerson', function(context, block) { // relationship indicator for profile page Handlebars.registerHelper("sharingMessage", function(person) { var i18nScope = "people.helper.is_not_sharing"; - var icon = "circle"; + var icon = "entypo-record"; if( person.is_sharing ) { i18nScope = "people.helper.is_sharing"; icon = "entypo-check"; diff --git a/app/assets/javascripts/app/views/hovercard_view.js b/app/assets/javascripts/app/views/hovercard_view.js index dfba3fdff..7009917a9 100644 --- a/app/assets/javascripts/app/views/hovercard_view.js +++ b/app/assets/javascripts/app/views/hovercard_view.js @@ -107,11 +107,12 @@ app.views.Hovercard = app.views.Base.extend({ if( !person || person.length === 0 ) { throw new Error("received data is not a person object"); } - - if (app.currentUser.authenticated()) { - self.aspectMembershipDropdown = new app.views.AspectMembership({person: new app.models.Person(person)}); - } + var personModel = new app.models.Person(person); + person.is_sharing = personModel.isSharing(); self.person = person; + if (app.currentUser.authenticated()) { + self.aspectMembershipDropdown = new app.views.AspectMembership({person: personModel}); + } self.render(); if( !self.showMe ) { diff --git a/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss b/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss index 0a9791042..3a91e7da5 100644 --- a/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss +++ b/app/assets/stylesheets/color_themes/_color_theme_override_dark.scss @@ -55,8 +55,8 @@ body { .tag:hover { background-color: desaturate(darken($link-color, 35%), 20%); } - #profile_container .profile_header { - #author_info #sharing_message.entypo-check { color: lighten($green, 10%); } + #sharing_message.entypo-check { + color: lighten($green, 10%); } #invitationsModal #email_invitation { border-top: 1px dashed $gray-light; } diff --git a/app/assets/stylesheets/hovercard.scss b/app/assets/stylesheets/hovercard.scss index 89e3b4cde..3f59e10bc 100644 --- a/app/assets/stylesheets/hovercard.scss +++ b/app/assets/stylesheets/hovercard.scss @@ -33,6 +33,12 @@ text-overflow: ellipsis; } + .status-container { + align-items: center; + display: flex; + margin-bottom: 5px; + } + #hovercard_dropdown_container { overflow: visible !important; /* otherwise the aspect dropdown is cropped */ } @@ -53,10 +59,7 @@ .handle { color: $text-grey; - line-height: 18px; - padding-top: 0px; - margin-top: 0px; - margin-bottom: 5px; + margin-right: 2px; } .btn-group.aspect-membership-dropdown { margin: 0 !important; } diff --git a/app/assets/stylesheets/people.scss b/app/assets/stylesheets/people.scss index 2283f8066..8daa65c1a 100644 --- a/app/assets/stylesheets/people.scss +++ b/app/assets/stylesheets/people.scss @@ -5,6 +5,7 @@ } .invitations-button { padding-left: 0; } } + #people-stream { .media, .media-body { overflow: visible; @@ -28,6 +29,7 @@ .info { font-size: $font-size-small; } } } + #blocked_people { .blocked-person { border-bottom: 1px solid $border-grey; @@ -45,3 +47,13 @@ .btn-danger { margin-top: 9px; } } } + +#sharing_message { + &.entypo-check { + color: darken($brand-success, 20%); + } + + &.entypo-record { + color: $text-grey; + } +} diff --git a/app/assets/stylesheets/profile.scss b/app/assets/stylesheets/profile.scss index 8e0c7e87d..3df4dfc78 100644 --- a/app/assets/stylesheets/profile.scss +++ b/app/assets/stylesheets/profile.scss @@ -28,11 +28,6 @@ #sharing_message { cursor: default; font-size: 20px; - &.circle { - color: $text-grey; - &:before { content: '\26aa'; } - } - &.entypo-check { color: darken($brand-success,20%); } } .description { margin-bottom: 20px; diff --git a/app/assets/templates/hovercard_tpl.jst.hbs b/app/assets/templates/hovercard_tpl.jst.hbs index 31daa0919..88906d8f6 100644 --- a/app/assets/templates/hovercard_tpl.jst.hbs +++ b/app/assets/templates/hovercard_tpl.jst.hbs @@ -6,7 +6,10 @@