BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
preferences_helper.rb
app/helpers/preferences_helper.rb
+2
-2
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