Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
7f0ffb8b
Unverified
Commit
7f0ffb8b
authored
Aug 22, 2016
by
Steffen van Bergerem
Committed by
Dennis Schubert
Aug 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix invitation link on people search page
parent
ae2cecef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
app/assets/javascripts/app/router.js
app/assets/javascripts/app/router.js
+9
-6
config/locales/diaspora/en.yml
config/locales/diaspora/en.yml
+1
-1
features/desktop/invitations.feature
features/desktop/invitations.feature
+11
-0
No files found.
app/assets/javascripts/app/router.js
View file @
7f0ffb8b
...
...
@@ -18,7 +18,7 @@ app.Router = Backbone.Router.extend({
"
mentions(/)
"
:
"
stream
"
,
"
notifications(/)
"
:
"
notifications
"
,
"
p/:id(/)
"
:
"
singlePost
"
,
"
people(/)
"
:
"
p
ageWithAspectMembershipDropdowns
"
,
"
people(/)
"
:
"
p
eopleSearch
"
,
"
people/:id(/)
"
:
"
profile
"
,
"
people/:id/contacts(/)
"
:
"
profile
"
,
"
people/:id/photos(/)
"
:
"
photos
"
,
...
...
@@ -137,6 +137,14 @@ app.Router = Backbone.Router.extend({
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
)
{
this
.
_loadContacts
();
this
.
renderPage
(
function
()
{
...
...
@@ -214,11 +222,6 @@ app.Router = Backbone.Router.extend({
app
.
contacts
=
new
app
.
collections
.
Contacts
(
app
.
parsePreload
(
"
contacts
"
));
},
pageWithAspectMembershipDropdowns
:
function
()
{
this
.
_loadContacts
();
this
.
renderAspectMembershipDropdowns
(
$
(
document
));
},
renderAspectMembershipDropdowns
:
function
(
$context
)
{
$context
.
find
(
"
.aspect_membership_dropdown.placeholder
"
).
each
(
function
()
{
var
personId
=
$
(
this
).
data
(
"
personId
"
);
...
...
config/locales/diaspora/en.yml
View file @
7f0ffb8b
...
...
@@ -1044,7 +1044,7 @@ en:
invitations
:
invites
:
"
Invites"
invite_your_friends
:
"
Invite
your
friends"
by_email
:
"
B
y
email"
by_email
:
"
Invite
people
b
y
email"
share_this
:
"
Share
this
link
via
email,
blog,
or
social
networks!"
public_explain
:
control_your_audience
:
"
Control
your
audience"
...
...
features/desktop/invitations.feature
View file @
7f0ffb8b
...
...
@@ -48,3 +48,14 @@ Feature: Invitations
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
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment