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
61ba8a28
Commit
61ba8a28
authored
Mar 28, 2018
by
Tiago Botelho
Committed by
André Luís
Mar 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds documentation about the system header and footer
parent
d1a54a41
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
12 deletions
+24
-12
doc/customization/system_header_and_footer_messages.md
doc/customization/system_header_and_footer_messages.md
+16
-0
doc/customization/system_header_and_footer_messages/appearance.png
...mization/system_header_and_footer_messages/appearance.png
+0
-0
doc/customization/system_header_and_footer_messages/custom_header_footer.png
...ystem_header_and_footer_messages/custom_header_footer.png
+0
-0
doc/customization/system_header_and_footer_messages/sign_up_custom_header_and_foote.png
...r_and_footer_messages/sign_up_custom_header_and_foote.png
+0
-0
ee/spec/helpers/ee/appearances_helper_spec.rb
ee/spec/helpers/ee/appearances_helper_spec.rb
+8
-12
No files found.
doc/customization/system_header_and_footer_messages.md
0 → 100644
View file @
61ba8a28
# Adding a system message to every page
Navigate to the
**Admin**
area and go to the
**Appearance**
page.
Under
**System header and footer**
insert your header message and/or footer message.
Both background and font color of the header and footer are customizable.
![
appearance
](
system_header_and_footer_messages/appearance.png
)
After saving, all GitLab pages will contain the custom system header and/or footer messages:
![
custom_header_footer
](
system_header_and_footer_messages/custom_header_footer.png
)
The GitLab sign in page will also show the header and the footer messages:
![
sign_up_custom_header_and_footer
](
system_header_and_footer_messages/sign_up_custom_header_and_footer.png
)
doc/customization/system_header_and_footer_messages/appearance.png
0 → 100644
View file @
61ba8a28
98 KB
doc/customization/system_header_and_footer_messages/custom_header_footer.png
0 → 100644
View file @
61ba8a28
473 KB
doc/customization/system_header_and_footer_messages/sign_up_custom_header_and_foote.png
0 → 100644
View file @
61ba8a28
352 KB
ee/spec/helpers/ee/appearances_helper_spec.rb
View file @
61ba8a28
...
...
@@ -3,38 +3,34 @@ require 'spec_helper'
describe
AppearancesHelper
do
describe
'#header_message'
do
it
'returns nil when header message field is not set'
do
appearance
=
build
(
:appearance
)
appearance
=
create
(
:appearance
)
expect
(
helper
.
header_message
(
appearance
)
).
to
be_nil
expect
(
helper
.
header_message
).
to
be_nil
end
context
'when header message is set'
do
let
(
:appearance
)
{
build
(
:appearance
,
header_message:
message
)
}
it
'includes current message'
do
message
=
"Foo bar"
appearance
=
build
(
:appearance
,
header_message:
message
)
appearance
=
create
(
:appearance
,
header_message:
message
)
expect
(
helper
.
header_message
(
appearance
)
).
to
include
(
message
)
expect
(
helper
.
header_message
).
to
include
(
message
)
end
end
end
describe
'#footer_message'
do
it
'returns nil when footer message field is not set'
do
appearance
=
build
(
:appearance
)
appearance
=
create
(
:appearance
)
expect
(
helper
.
footer_message
(
appearance
)
).
to
be_nil
expect
(
helper
.
footer_message
).
to
be_nil
end
context
'when footer message is set'
do
let
(
:appearance
)
{
build
(
:appearance
,
header_message:
message
)
}
it
'includes current message'
do
message
=
"Foo bar"
appearance
=
build
(
:appearance
,
footer_message:
message
)
appearance
=
create
(
:appearance
,
footer_message:
message
)
expect
(
helper
.
footer_message
(
appearance
)
).
to
include
(
message
)
expect
(
helper
.
footer_message
).
to
include
(
message
)
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