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
fe17a236
Commit
fe17a236
authored
Sep 16, 2015
by
Jeroen van Baarsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow custom info to be added to Help page
Fixes #2536 Signed-off-by:
Jeroen van Baarsen
<
jeroenvanbaarsen@gmail.com
>
parent
0aec0d53
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
0 deletions
+17
-0
CHANGELOG
CHANGELOG
+1
-0
application_settings_controller.rb
app/controllers/admin/application_settings_controller.rb
+1
-0
_form.html.haml
app/views/admin/application_settings/_form.html.haml
+5
-0
index.html.haml
app/views/help/index.html.haml
+3
-0
20150916114643_add_help_page_text_to_application_settings.rb
...50916114643_add_help_page_text_to_application_settings.rb
+5
-0
schema.rb
db/schema.rb
+1
-0
settings.rb
features/steps/admin/settings.rb
+1
-0
No files found.
CHANGELOG
View file @
fe17a236
...
...
@@ -53,6 +53,7 @@ v 8.0.0 (unreleased)
- Add FogBugz project import (Jared Szechy)
- Sort users autocomplete lists by user (Allister Antosik)
- Webhook for issue now contains repository field (Jungkook Park)
- Add ability to add custom text to the help page (Jeroen van Baarsen)
v 7.14.3
- No changes
...
...
app/controllers/admin/application_settings_controller.rb
View file @
fe17a236
...
...
@@ -46,6 +46,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
:gravatar_enabled
,
:twitter_sharing_enabled
,
:sign_in_text
,
:help_page_text
,
:home_page_url
,
:after_sign_out_path
,
:max_attachment_size
,
...
...
app/views/admin/application_settings/_form.html.haml
View file @
fe17a236
...
...
@@ -118,6 +118,11 @@
.col-sm-10
=
f
.
text_area
:sign_in_text
,
class:
'form-control'
,
rows:
4
.help-block
Markdown enabled
.form-group
=
f
.
label
:help_page_text
,
class:
'control-label col-sm-2'
.col-sm-10
=
f
.
text_area
:help_page_text
,
class:
'form-control'
,
rows:
4
.help-block
Markdown enabled
.form-actions
=
f
.
submit
'Save'
,
class:
'btn btn-primary'
app/views/help/index.html.haml
View file @
fe17a236
...
...
@@ -17,6 +17,9 @@
Used by more than 100,000 organizations, GitLab is the most popular solution to manage git repositories on-premises.
%br
Read more about GitLab at
#{
link_to
promo_host
,
promo_url
,
target:
'_blank'
}
.
-
if
current_application_settings
.
help_page_text
.
present?
%hr
=
markdown
(
current_application_settings
.
help_page_text
)
%hr
...
...
db/migrate/20150916114643_add_help_page_text_to_application_settings.rb
0 → 100644
View file @
fe17a236
class
AddHelpPageTextToApplicationSettings
<
ActiveRecord
::
Migration
def
change
add_column
:application_settings
,
:help_page_text
,
:text
end
end
db/schema.rb
View file @
fe17a236
...
...
@@ -45,6 +45,7 @@ ActiveRecord::Schema.define(version: 20150916145038) do
t
.
string
"after_sign_out_path"
t
.
integer
"session_expire_delay"
,
default:
10080
,
null:
false
t
.
text
"import_sources"
t
.
text
"help_page_text"
end
create_table
"audit_events"
,
force:
true
do
|
t
|
...
...
features/steps/admin/settings.rb
View file @
fe17a236
...
...
@@ -7,6 +7,7 @@ class Spinach::Features::AdminSettings < Spinach::FeatureSteps
step
'I modify settings and save form'
do
uncheck
'Gravatar enabled'
fill_in
'Home page URL'
,
with:
'https://about.gitlab.com/'
fill_in
'Help page text'
,
with:
'Example text'
click_button
'Save'
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