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
88a42a83
Commit
88a42a83
authored
Aug 10, 2020
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add homepage wording to user preferences
- for ease of understanding and linking.
parent
82678ecc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
7 deletions
+26
-7
app/views/profiles/preferences/show.html.haml
app/views/profiles/preferences/show.html.haml
+4
-2
changelogs/unreleased/225858-update-pref-page-homepage.yml
changelogs/unreleased/225858-update-pref-page-homepage.yml
+5
-0
ee/app/views/profiles/preferences/_group_overview_selector.html.haml
...s/profiles/preferences/_group_overview_selector.html.haml
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+7
-4
spec/views/profiles/preferences/show.html.haml_spec.rb
spec/views/profiles/preferences/show.html.haml_spec.rb
+9
-0
No files found.
app/views/profiles/preferences/show.html.haml
View file @
88a42a83
...
...
@@ -35,7 +35,7 @@
.col-sm-12
%hr
.col-lg-4.profile-settings-sidebar
.col-lg-4.profile-settings-sidebar
#behavior
%h4
.gl-mt-0
=
s_
(
'Preferences|Behavior'
)
%p
...
...
@@ -51,8 +51,10 @@
=
s_
(
'Preferences|Choose between fixed (max. 1280px) and fluid (%{percentage}) application layout.'
).
html_safe
%
{
percentage:
'100%'
}
.form-group
=
f
.
label
:dashboard
,
class:
'label-bold'
do
=
s_
(
'Preferences|
Default dashboard
'
)
=
s_
(
'Preferences|
Homepage content
'
)
=
f
.
select
:dashboard
,
dashboard_choices
,
{},
class:
'select2'
.form-text.text-muted
=
s_
(
'Preferences|Choose what content you want to see on your homepage.'
)
=
render_if_exists
'profiles/preferences/group_overview_selector'
,
f:
f
# EE-specific
...
...
changelogs/unreleased/225858-update-pref-page-homepage.yml
0 → 100644
View file @
88a42a83
---
title
:
Update preferences for homepage/dashboard wording
merge_request
:
39092
author
:
type
:
changed
ee/app/views/profiles/preferences/_group_overview_selector.html.haml
View file @
88a42a83
...
...
@@ -5,4 +5,4 @@
=
_
(
'Group overview content'
)
=
f
.
select
:group_view
,
group_view_choices
,
{},
class:
'select2'
.form-text.text-muted
=
_
(
'Choose what content you want to see on a group’s overview page'
)
=
_
(
'Choose what content you want to see on a group’s overview page
.
'
)
locale/gitlab.pot
View file @
88a42a83
...
...
@@ -4748,7 +4748,7 @@ msgstr ""
msgid "Choose visibility level, enable/disable project features (issues, repository, wiki, snippets) and set permissions."
msgstr ""
msgid "Choose what content you want to see on a group’s overview page"
msgid "Choose what content you want to see on a group’s overview page
.
"
msgstr ""
msgid "Choose which repositories you want to connect and run CI/CD pipelines."
...
...
@@ -18049,13 +18049,13 @@ msgstr ""
msgid "Preferences|Choose what content you want to see on a project’s overview page."
msgstr ""
msgid "Preferences|C
ustomize integrations with third party services
."
msgid "Preferences|C
hoose what content you want to see on your homepage
."
msgstr ""
msgid "Preferences|Customize
the appearance of the application header and navigation sidebar
."
msgid "Preferences|Customize
integrations with third party services
."
msgstr ""
msgid "Preferences|
Default dashboard
"
msgid "Preferences|
Customize the appearance of the application header and navigation sidebar.
"
msgstr ""
msgid "Preferences|Display time in 24-hour format"
...
...
@@ -18067,6 +18067,9 @@ msgstr ""
msgid "Preferences|For example: 30 mins ago."
msgstr ""
msgid "Preferences|Homepage content"
msgstr ""
msgid "Preferences|Instead of all the files changed, show only one file at a time. To switch between files, use the file browser."
msgstr ""
...
...
spec/views/profiles/preferences/show.html.haml_spec.rb
View file @
88a42a83
...
...
@@ -20,6 +20,15 @@ RSpec.describe 'profiles/preferences/show' do
it
'has option for Render whitespace characters in the Web IDE'
do
expect
(
rendered
).
to
have_unchecked_field
(
'Render whitespace characters in the Web IDE'
)
end
it
'has an id for anchoring on behavior'
do
expect
(
rendered
).
to
have_css
(
'#behavior'
)
end
it
'has helpful homepage setup guidance'
do
expect
(
rendered
).
to
have_field
(
'Homepage content'
)
expect
(
rendered
).
to
have_content
(
'Choose what content you want to see on your homepage.'
)
end
end
context
'sourcegraph'
do
...
...
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