Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2dbde568
Commit
2dbde568
authored
Jan 28, 2020
by
Alex Buijs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix plural translation
parent
3925fdf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
ee/app/views/subscriptions/groups/edit.html.haml
ee/app/views/subscriptions/groups/edit.html.haml
+1
-1
ee/spec/views/subscriptions/groups/edit.html.haml_spec.rb
ee/spec/views/subscriptions/groups/edit.html.haml_spec.rb
+35
-0
No files found.
ee/app/views/subscriptions/groups/edit.html.haml
View file @
2dbde568
...
...
@@ -7,7 +7,7 @@
=
image_tag
(
'illustrations/subscription-success.svg'
,
class:
'mw-xs'
)
.gl-banner-content.d-flex.flex-column.justify-content-center
%h3
=
_
(
'Thanks for your purchase!'
)
-
number_of_users
=
n_
(
'1 user'
,
'%{num} users'
,
params
[
:quantity
])
%
{
num:
params
[
:quantity
]
}
-
number_of_users
=
n_
(
'1 user'
,
'%{num} users'
,
params
[
:quantity
]
.
to_i
)
%
{
num:
params
[
:quantity
]
}
%p
=
_
(
'You have successfully purchased a %{plan} plan subscription for %{seats}. You’ll receive a receipt via email.'
)
%
{
plan:
plan_title
,
seats:
number_of_users
}
.edit-group.d-flex.flex-column.align-items-center.gl-pt-5
#progress-bar
...
...
ee/spec/views/subscriptions/groups/edit.html.haml_spec.rb
0 → 100644
View file @
2dbde568
# frozen_string_literal: true
require
'spec_helper'
describe
'subscriptions/groups/edit'
do
before
do
assign
(
:group
,
Group
.
new
)
allow
(
view
).
to
receive
(
:params
).
and_return
(
quantity:
quantity
)
allow
(
view
).
to
receive
(
:plan_title
).
and_return
(
'Bronze'
)
allow
(
view
).
to
receive
(
:group_path
).
and_return
(
''
)
allow
(
view
).
to
receive
(
:subscriptions_groups_path
).
and_return
(
''
)
allow
(
view
).
to
receive
(
:current_user
).
and_return
(
User
.
new
)
end
context
'a single user'
do
let
(
:quantity
)
{
'1'
}
it
'displays the correct notification for 1 user'
do
render
expect
(
rendered
).
to
have_text
(
'You have successfully purchased a Bronze plan subscription for 1 user. You’ll receive a receipt via email.'
)
end
end
context
'multiple users'
do
let
(
:quantity
)
{
'2'
}
it
'displays the correct notification for 2 users'
do
render
expect
(
rendered
).
to
have_text
(
'You have successfully purchased a Bronze plan subscription for 2 users. You’ll receive a receipt via email.'
)
end
end
end
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