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
4e6d6877
Commit
4e6d6877
authored
Jun 20, 2019
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pagination prev and next texts
parent
ea795837
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
app/assets/javascripts/vue_shared/components/pagination/constants.js
...javascripts/vue_shared/components/pagination/constants.js
+2
-2
changelogs/unreleased/update-pagination-texts.yml
changelogs/unreleased/update-pagination-texts.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+3
-3
spec/javascripts/vue_shared/components/table_pagination_spec.js
...avascripts/vue_shared/components/table_pagination_spec.js
+2
-2
No files found.
app/assets/javascripts/vue_shared/components/pagination/constants.js
View file @
4e6d6877
...
...
@@ -3,8 +3,8 @@ import { s__ } from '~/locale';
export
const
PAGINATION_UI_BUTTON_LIMIT
=
4
;
export
const
UI_LIMIT
=
6
;
export
const
SPREAD
=
'
...
'
;
export
const
PREV
=
s__
(
'
Pagination|Prev
'
);
export
const
NEXT
=
s__
(
'
Pagination|Next
'
);
export
const
PREV
=
s__
(
'
Pagination|
‹
Prev
'
);
export
const
NEXT
=
s__
(
'
Pagination|Next
›
'
);
export
const
FIRST
=
s__
(
'
Pagination|« First
'
);
export
const
LAST
=
s__
(
'
Pagination|Last »
'
);
export
const
LABEL_FIRST_PAGE
=
s__
(
'
Pagination|Go to first page
'
);
...
...
changelogs/unreleased/update-pagination-texts.yml
0 → 100644
View file @
4e6d6877
---
title
:
Update pagination prev and next texts
merge_request
:
29911
author
:
type
:
other
locale/gitlab.pot
View file @
4e6d6877
...
...
@@ -6937,13 +6937,13 @@ msgstr ""
msgid "Pagination|Last »"
msgstr ""
msgid "Pagination|Next"
msgid "Pagination|Next
›
"
msgstr ""
msgid "Pagination|
Prev
"
msgid "Pagination|
« First
"
msgstr ""
msgid "Pagination|
« First
"
msgid "Pagination|
‹ Prev
"
msgstr ""
msgid "Parameter"
...
...
spec/javascripts/vue_shared/components/table_pagination_spec.js
View file @
4e6d6877
...
...
@@ -217,7 +217,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
expect
(
component
.
$el
.
querySelector
(
'
.js-next-button
'
).
textContent
.
trim
()).
toEqual
(
'
Next
'
);
expect
(
component
.
$el
.
querySelector
(
'
.js-next-button
'
).
textContent
.
trim
()).
toEqual
(
'
Next
›
'
);
component
.
$el
.
querySelector
(
'
.js-next-button .page-link
'
).
click
();
...
...
@@ -237,7 +237,7 @@ describe('Pagination component', () => {
change
:
spy
,
});
expect
(
component
.
$el
.
querySelector
(
'
.js-next-button
'
).
textContent
.
trim
()).
toEqual
(
'
Next
'
);
expect
(
component
.
$el
.
querySelector
(
'
.js-next-button
'
).
textContent
.
trim
()).
toEqual
(
'
Next
›
'
);
component
.
$el
.
querySelector
(
'
.js-next-button .page-link
'
).
click
();
...
...
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