diff --git a/apps/social/models.py b/apps/social/models.py index 31db70c97..2a3c923ff 100644 --- a/apps/social/models.py +++ b/apps/social/models.py @@ -427,7 +427,7 @@ class MSocialProfile(mongo.Document): self.count_follows() self.save() - if followee.protected and not force: + if followee.protected and user_id != self.user_id and not force: if self.user_id not in followee.requested_follow_user_ids: followee.requested_follow_user_ids.append(self.user_id) MFollowRequest.add(self.user_id, user_id) @@ -436,7 +436,7 @@ class MSocialProfile(mongo.Document): followee.count_follows() followee.save() - if followee.protected and not force: + if followee.protected and user_id != self.user_id and not force: from apps.social.tasks import EmailFollowRequest EmailFollowRequest.apply_async(kwargs=dict(follower_user_id=self.user_id, followee_user_id=user_id), @@ -448,9 +448,10 @@ class MSocialProfile(mongo.Document): follower_key = "F:%s:f" % (user_id) r.sadd(follower_key, self.user_id) - if self.user_id != user_id: + if user_id != self.user_id: MInteraction.new_follow(follower_user_id=self.user_id, followee_user_id=user_id) MActivity.new_follow(follower_user_id=self.user_id, followee_user_id=user_id) + socialsub, _ = MSocialSubscription.objects.get_or_create(user_id=self.user_id, subscription_user_id=user_id) socialsub.needs_unread_recalc = True diff --git a/media/css/reader.css b/media/css/reader.css index eab087686..be83c148f 100644 --- a/media/css/reader.css +++ b/media/css/reader.css @@ -3869,6 +3869,8 @@ form.opml_import_form input { z-index: 1; margin: 0; padding: 0; + font-weight: 300; + font-family: "Lucida Sans", "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, sans-serif; } .NB-splash-info .NB-splash-links .NB-splash-link { @@ -3890,6 +3892,8 @@ form.opml_import_form input { -ms-transition: all .12s ease-out; background: transparent url('/media/embed/reader/spacer_16.png') no-repeat 0 -17px; background-size: 16px; + font-weight: bold; + text-rendering: optimizeLegibility; } @media screen and (max-width: 1150px) { @@ -3898,21 +3902,34 @@ form.opml_import_form input { padding-left: 19px; } } +@media screen and (max-width: 950px) { + .NB-splash-info .NB-splash-links .NB-splash-link a { + padding-right: 6px; + padding-left: 6px; + } + .NB-splash-info .NB-splash-links .NB-splash-link a:hover { + background: none !important; + } +} +.NB-splash-info .NB-splash-link-logo { + display: none; +} +.NB-body-main .NB-splash-info .NB-splash-link-logo { + float: right; + display: block; +} .NB-splash-info .NB-splash-links .NB-splash-link.NB-splash-link-logo a { padding-top: 0; padding-bottom: 0; margin-top: -1px; } +.NB-splash-info .NB-splash-links .NB-splash-link.NB-active a, .NB-splash-info .NB-splash-links .NB-splash-link-about a:hover, .NB-splash-info .NB-splash-links .NB-splash-link-faq a:hover, .NB-splash-info .NB-splash-links .NB-splash-link-api a:hover, .NB-splash-info .NB-splash-links .NB-splash-link-press a:hover { - background: transparent url('/media/embed/favicon_32.png') no-repeat 0 6px; - background-size: 16px; -} -.NB-splash-info .NB-splash-links .NB-splash-link-github a:hover { - background: transparent url('/media/embed/reader/github.png') no-repeat 0 6px; + background: transparent url('/media/embed/favicon_32.png') no-repeat 0 7px; background-size: 16px; } .NB-splash-info .NB-splash-links .NB-splash-link-ios a:hover { @@ -3920,7 +3937,11 @@ form.opml_import_form input { background-size: 16px; } .NB-splash-info .NB-splash-links .NB-splash-link-android a:hover { - background: transparent url('/media/embed/reader/android_icon_round.png') no-repeat 0 6px; + background: transparent url('/media/embed/reader/android_icon_round.png') no-repeat 0 7px; + background-size: 16px; +} +.NB-splash-info .NB-splash-links .NB-splash-link-github a:hover { + background: transparent url('/media/embed/reader/github.png') no-repeat 0 6px; background-size: 16px; } .NB-splash-info .NB-splash-links .NB-splash-link-getsatisfaction a:hover { @@ -3932,7 +3953,7 @@ form.opml_import_form input { background-size: 16px; } .NB-splash-info .NB-splash-links .NB-splash-link-twitter a:hover { - background: transparent url('/media/embed/reader/twitter_bird.png') no-repeat 0 6px; + background: transparent url('/media/embed/reader/twitter_bird.png') no-repeat 0 7px; background-size: 16px; } diff --git a/media/css/welcome.css b/media/css/welcome.css index 8b37b1314..590ec3e8e 100644 --- a/media/css/welcome.css +++ b/media/css/welcome.css @@ -18,11 +18,28 @@ background-color: rgba(0, 0, 0, .4); } .NB-welcome .NB-splash-info.NB-splash-bottom { - position: static; - display: none !important; + position: relative; + height: auto; + float: left; + overflow: hidden; + border-top: 1px solid rgba(0, 0, 0, .4); } -.NB-welcome .NB-splash-info.NB-splash-bottom .NB-splash-links { - display: none; +.NB-welcome .NB-splash-info .NB-splash-links { + position: relative; + left: 50%; + width: auto; + float: left; +} +.NB-welcome .NB-splash-info .NB-splash-links li { + position: relative; + right: 50%; +} +.NB-welcome .NB-splash-info .NB-splash-links a { + color: rgba(255, 255, 255, .7); + text-shadow: 0 1px 0 rgba(0, 0, 0, .2); +} +.NB-welcome .NB-splash-info .NB-splash-links a:hover { + color: #F4DD43; } /* ========== */ @@ -35,9 +52,6 @@ position: relative; height: 100%; } -.NB-welcome .NB-splash-links { - overflow: hidden; -} .NB-button { border: 1px solid #07360F; font-size: 12px; @@ -599,16 +613,18 @@ .NB-welcome-footer { overflow: hidden; clear: both; - padding: 42px 0 52px; + padding: 42px 0 0; color: #363C53; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); line-height: 24px; background-color: #FAFAFA; - background: #F1E0D0 url(/media/img/welcome/footer_background.jpg) repeat center bottom; + background: #F1E0D0 url(/media/img/welcome/footer_background.jpg) repeat center top; background-size: 1438px 150px; - border-top: 4px solid rgba(0, 0, 0, .1); - border-bottom: 6px solid rgba(0, 0, 0, .4); + border-top: 2px solid rgba(0, 0, 0, .1); +} +.NB-welcome-footer .NB-welcome-footer-content { + margin-bottom: 46px; } .NB-welcome-footer .NB-footer-logo { vertical-align: text-bottom; diff --git a/templates/base.html b/templates/base.html index bf5b07ea6..6e35966a1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -118,22 +118,10 @@ {% block content %}{% endblock %} - -
+ + {% block footer %} + {% render_footer "welcome" %} + {% endblock footer %} diff --git a/templates/reader/footer.xhtml b/templates/reader/footer.xhtml new file mode 100644 index 000000000..e45be164c --- /dev/null +++ b/templates/reader/footer.xhtml @@ -0,0 +1,17 @@ + diff --git a/templates/reader/welcome.xhtml b/templates/reader/welcome.xhtml index 8a5be28c2..7363dc3b5 100644 --- a/templates/reader/welcome.xhtml +++ b/templates/reader/welcome.xhtml @@ -231,8 +231,14 @@ + + +{% endblock %} + +{% block footer %} +