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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
f22d80ad
Commit
f22d80ad
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
cherry-picked
parent
8dfe01cb
Changes
2
Show 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 @
f22d80ad
...
@@ -6,7 +6,7 @@ module PreferencesHelper
...
@@ -6,7 +6,7 @@ module PreferencesHelper
orig
=
User
.
dashboards
.
keys
orig
=
User
.
dashboards
.
keys
choices
=
[
choices
=
[
[
'Projects (default)'
,
orig
[
0
]],
[
'
Your
Projects (default)'
,
orig
[
0
]],
[
'Starred Projects'
,
orig
[
1
]]
[
'Starred Projects'
,
orig
[
1
]]
]
]
...
...
spec/helpers/preferences_helper_spec.rb
View file @
f22d80ad
...
@@ -13,7 +13,7 @@ describe PreferencesHelper do
...
@@ -13,7 +13,7 @@ describe PreferencesHelper do
it
'provides better option descriptions'
do
it
'provides better option descriptions'
do
choices
=
dashboard_choices
choices
=
dashboard_choices
expect
(
choices
[
0
]).
to
eq
[
'Projects (default)'
,
'projects'
]
expect
(
choices
[
0
]).
to
eq
[
'
Your
Projects (default)'
,
'projects'
]
expect
(
choices
[
1
]).
to
eq
[
'Starred Projects'
,
'stars'
]
expect
(
choices
[
1
]).
to
eq
[
'Starred Projects'
,
'stars'
]
end
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