Merge branch 'release/0.6.0.0' into next-minor
This commit is contained in:
commit
bcaf99c806
6 changed files with 25 additions and 10 deletions
|
|
@ -18,7 +18,7 @@ app.Router = Backbone.Router.extend({
|
||||||
"mentions(/)": "stream",
|
"mentions(/)": "stream",
|
||||||
"notifications(/)": "notifications",
|
"notifications(/)": "notifications",
|
||||||
"p/:id(/)": "singlePost",
|
"p/:id(/)": "singlePost",
|
||||||
"people(/)": "pageWithAspectMembershipDropdowns",
|
"people(/)": "peopleSearch",
|
||||||
"people/:id(/)": "profile",
|
"people/:id(/)": "profile",
|
||||||
"people/:id/contacts(/)": "profile",
|
"people/:id/contacts(/)": "profile",
|
||||||
"people/:id/photos(/)": "photos",
|
"people/:id/photos(/)": "photos",
|
||||||
|
|
@ -137,6 +137,14 @@ app.Router = Backbone.Router.extend({
|
||||||
new app.views.Notifications({el: "#notifications_container"});
|
new app.views.Notifications({el: "#notifications_container"});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
peopleSearch: function() {
|
||||||
|
this._loadContacts();
|
||||||
|
this.renderAspectMembershipDropdowns($(document));
|
||||||
|
$(".invitations-link").click(function() {
|
||||||
|
app.helpers.showModal("#invitationsModal");
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
photos: function(guid) {
|
photos: function(guid) {
|
||||||
this._loadContacts();
|
this._loadContacts();
|
||||||
this.renderPage(function() {
|
this.renderPage(function() {
|
||||||
|
|
@ -214,11 +222,6 @@ app.Router = Backbone.Router.extend({
|
||||||
app.contacts = new app.collections.Contacts(app.parsePreload("contacts"));
|
app.contacts = new app.collections.Contacts(app.parsePreload("contacts"));
|
||||||
},
|
},
|
||||||
|
|
||||||
pageWithAspectMembershipDropdowns: function() {
|
|
||||||
this._loadContacts();
|
|
||||||
this.renderAspectMembershipDropdowns($(document));
|
|
||||||
},
|
|
||||||
|
|
||||||
renderAspectMembershipDropdowns: function($context) {
|
renderAspectMembershipDropdowns: function($context) {
|
||||||
$context.find(".aspect_membership_dropdown.placeholder").each(function() {
|
$context.find(".aspect_membership_dropdown.placeholder").each(function() {
|
||||||
var personId = $(this).data("personId");
|
var personId = $(this).data("personId");
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
{{#if bio}}
|
{{#if bio}}
|
||||||
<li>
|
<li>
|
||||||
<h4>{{t 'profile.bio'}}</h4>
|
<h4>{{t 'profile.bio'}}</h4>
|
||||||
<div class="{{txtDirClass bio}}">{{fmtText bio}}</div>
|
<div class="{{txtDirClass bio}} markdown-content">{{fmtText bio}}</div>
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if location}}
|
{{#if location}}
|
||||||
|
|
|
||||||
|
|
@ -1044,7 +1044,7 @@ en:
|
||||||
invitations:
|
invitations:
|
||||||
invites: "Invites"
|
invites: "Invites"
|
||||||
invite_your_friends: "Invite your friends"
|
invite_your_friends: "Invite your friends"
|
||||||
by_email: "By email"
|
by_email: "Invite people by email"
|
||||||
share_this: "Share this link via email, blog, or social networks!"
|
share_this: "Share this link via email, blog, or social networks!"
|
||||||
public_explain:
|
public_explain:
|
||||||
control_your_audience: "Control your audience"
|
control_your_audience: "Control your audience"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@ class RemoveStartedSharingNotificationsWithoutContact < ActiveRecord::Migration
|
||||||
def up
|
def up
|
||||||
Notification.where(type: "Notifications::StartedSharing", target_type: "Person")
|
Notification.where(type: "Notifications::StartedSharing", target_type: "Person")
|
||||||
.joins("INNER JOIN people ON people.id = notifications.target_id")
|
.joins("INNER JOIN people ON people.id = notifications.target_id")
|
||||||
.joins("LEFT OUTER JOIN contacts ON contacts.person_id = people.id")
|
.joins("LEFT OUTER JOIN contacts ON contacts.person_id = people.id " \
|
||||||
|
"AND contacts.user_id = notifications.recipient_id")
|
||||||
.delete_all("contacts.id IS NULL")
|
.delete_all("contacts.id IS NULL")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20160820181334) do
|
ActiveRecord::Schema.define(version: 20160822212739) do
|
||||||
|
|
||||||
create_table "account_deletions", force: :cascade do |t|
|
create_table "account_deletions", force: :cascade do |t|
|
||||||
t.string "diaspora_handle", limit: 255
|
t.string "diaspora_handle", limit: 255
|
||||||
|
|
|
||||||
|
|
@ -48,3 +48,14 @@ Feature: Invitations
|
||||||
And I press "Send an invitation"
|
And I press "Send an invitation"
|
||||||
Then I should have 1 Devise email delivery
|
Then I should have 1 Devise email delivery
|
||||||
And I should not see "change your notification settings" in the last sent email
|
And I should not see "change your notification settings" in the last sent email
|
||||||
|
|
||||||
|
Scenario: sends an invitation from the people search page
|
||||||
|
When I sign in as "alice@alice.alice"
|
||||||
|
And I search for "test"
|
||||||
|
Then I should see "Users matching test" within "#search_title"
|
||||||
|
When I click on selector "#invitations-button"
|
||||||
|
And I fill in the following:
|
||||||
|
| email_inviter_emails | alex@example.com |
|
||||||
|
And I press "Send an invitation"
|
||||||
|
Then I should have 1 Devise email delivery
|
||||||
|
And I should not see "change your notification settings" in the last sent email
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue