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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
fb5271dd
Commit
fb5271dd
authored
Jun 10, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the dashboard choice text match the text in the sidebar
parent
bf9dd432
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/helpers/preferences_helper.rb
app/helpers/preferences_helper.rb
+2
-2
spec/helpers/preferences_helper_spec.rb
spec/helpers/preferences_helper_spec.rb
+2
-2
No files found.
app/helpers/preferences_helper.rb
View file @
fb5271dd
...
...
@@ -26,8 +26,8 @@ module PreferencesHelper
orig
=
User
.
dashboards
.
keys
choices
=
[
[
'Projects (default)'
,
orig
[
0
]],
[
'Starred Projects'
,
orig
[
1
]]
[
'
Your
Projects (default)'
,
orig
[
0
]],
[
'Starred Projects'
,
orig
[
1
]]
]
if
orig
.
size
!=
choices
.
size
...
...
spec/helpers/preferences_helper_spec.rb
View file @
fb5271dd
...
...
@@ -42,8 +42,8 @@ describe PreferencesHelper do
it
'provides better option descriptions'
do
choices
=
dashboard_choices
expect
(
choices
[
0
]).
to
eq
[
'Projects (default)'
,
'projects'
]
expect
(
choices
[
1
]).
to
eq
[
'Starred Projects'
,
'stars'
]
expect
(
choices
[
0
]).
to
eq
[
'
Your
Projects (default)'
,
'projects'
]
expect
(
choices
[
1
]).
to
eq
[
'Starred Projects'
,
'stars'
]
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