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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
bfd21813
Commit
bfd21813
authored
Sep 10, 2018
by
Martin Wortschack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use referer for redirect instead of hidden field param from partials
parent
bf5972e1
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
1 addition
and
61 deletions
+1
-61
app/controllers/admin/application_settings_controller.rb
app/controllers/admin/application_settings_controller.rb
+1
-1
app/views/admin/application_settings/_abuse.html.haml
app/views/admin/application_settings/_abuse.html.haml
+0
-2
app/views/admin/application_settings/_account_and_limit.html.haml
...s/admin/application_settings/_account_and_limit.html.haml
+0
-2
app/views/admin/application_settings/_background_jobs.html.haml
...ews/admin/application_settings/_background_jobs.html.haml
+0
-2
app/views/admin/application_settings/_ci_cd.html.haml
app/views/admin/application_settings/_ci_cd.html.haml
+0
-2
app/views/admin/application_settings/_email.html.haml
app/views/admin/application_settings/_email.html.haml
+0
-2
app/views/admin/application_settings/_gitaly.html.haml
app/views/admin/application_settings/_gitaly.html.haml
+0
-2
app/views/admin/application_settings/_help_page.html.haml
app/views/admin/application_settings/_help_page.html.haml
+0
-2
app/views/admin/application_settings/_influx.html.haml
app/views/admin/application_settings/_influx.html.haml
+0
-2
app/views/admin/application_settings/_ip_limits.html.haml
app/views/admin/application_settings/_ip_limits.html.haml
+0
-2
app/views/admin/application_settings/_koding.html.haml
app/views/admin/application_settings/_koding.html.haml
+0
-2
app/views/admin/application_settings/_logging.html.haml
app/views/admin/application_settings/_logging.html.haml
+0
-2
app/views/admin/application_settings/_outbound.html.haml
app/views/admin/application_settings/_outbound.html.haml
+0
-2
app/views/admin/application_settings/_pages.html.haml
app/views/admin/application_settings/_pages.html.haml
+0
-2
app/views/admin/application_settings/_performance.html.haml
app/views/admin/application_settings/_performance.html.haml
+0
-2
app/views/admin/application_settings/_performance_bar.html.haml
...ews/admin/application_settings/_performance_bar.html.haml
+0
-2
app/views/admin/application_settings/_plantuml.html.haml
app/views/admin/application_settings/_plantuml.html.haml
+0
-2
app/views/admin/application_settings/_prometheus.html.haml
app/views/admin/application_settings/_prometheus.html.haml
+0
-2
app/views/admin/application_settings/_realtime.html.haml
app/views/admin/application_settings/_realtime.html.haml
+0
-2
app/views/admin/application_settings/_registry.html.haml
app/views/admin/application_settings/_registry.html.haml
+0
-2
app/views/admin/application_settings/_repository_check.html.haml
...ws/admin/application_settings/_repository_check.html.haml
+0
-2
app/views/admin/application_settings/_repository_mirrors_form.html.haml
...n/application_settings/_repository_mirrors_form.html.haml
+0
-2
app/views/admin/application_settings/_repository_storage.html.haml
.../admin/application_settings/_repository_storage.html.haml
+0
-2
app/views/admin/application_settings/_signin.html.haml
app/views/admin/application_settings/_signin.html.haml
+0
-2
app/views/admin/application_settings/_signup.html.haml
app/views/admin/application_settings/_signup.html.haml
+0
-2
app/views/admin/application_settings/_spam.html.haml
app/views/admin/application_settings/_spam.html.haml
+0
-2
app/views/admin/application_settings/_terminal.html.haml
app/views/admin/application_settings/_terminal.html.haml
+0
-2
app/views/admin/application_settings/_terms.html.haml
app/views/admin/application_settings/_terms.html.haml
+0
-2
app/views/admin/application_settings/_third_party_offers.html.haml
.../admin/application_settings/_third_party_offers.html.haml
+0
-2
app/views/admin/application_settings/_usage.html.haml
app/views/admin/application_settings/_usage.html.haml
+0
-2
app/views/admin/application_settings/_visibility_and_access.html.haml
...min/application_settings/_visibility_and_access.html.haml
+0
-2
No files found.
app/controllers/admin/application_settings_controller.rb
View file @
bfd21813
...
...
@@ -9,7 +9,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
.
new
(
@application_setting
,
current_user
,
application_setting_params
)
.
execute
redirect_path
=
params
[
:redirect_path
]
?
params
[
:redirect_path
].
to_h
:
admin_application_settings_path
redirect_path
=
request
.
referer
.
presence
?
request
.
referer
:
admin_application_settings_path
if
successful
redirect_to
redirect_path
,
...
...
app/views/admin/application_settings/_abuse.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-abuse-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
reporting_admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:admin_notification_email
,
'Abuse reports notification email'
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_account_and_limit.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-account-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_background_jobs.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-background-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
preferences_admin_application_settings_path
)
%fieldset
%p
These settings require a
...
...
app/views/admin/application_settings/_ci_cd.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-ci-cd-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
ci_cd_admin_application_settings_path
)
%fieldset
.form-group
.card.auto-devops-card
...
...
app/views/admin/application_settings/_email.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-email-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
preferences_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_gitaly.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-gitaly-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
preferences_admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:gitaly_timeout_default
,
'Default Timeout Period'
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_help_page.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-help-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
preferences_admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:help_page_text
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_influx.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-influx-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
metrics_and_profiling_admin_application_settings_path
)
%fieldset
%p
Setup InfluxDB to measure a wide variety of statistics like the time spent
...
...
app/views/admin/application_settings/_ip_limits.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-ip-limits-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
network_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_koding.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-koding-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_logging.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-logging-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
reporting_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_outbound.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-outbound-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
network_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_pages.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-pages-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
preferences_admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:max_pages_size
,
'Maximum size of pages (MB)'
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_performance.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-performance-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
network_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_performance_bar.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-performance-bar-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
metrics_and_profiling_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_plantuml.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-plantuml-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
integrations_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_prometheus.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-prometheus-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
metrics_and_profiling_admin_application_settings_path
)
%fieldset
%p
Enable a Prometheus metrics endpoint at
...
...
app/views/admin/application_settings/_realtime.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-realtime-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
preferences_admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:polling_interval_multiplier
,
'Polling interval multiplier'
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_registry.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-registry-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
ci_cd_admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:container_registry_token_expire_delay
,
'Authorization token duration (minutes)'
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_repository_check.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-repository-check-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
repository_admin_application_settings_path
)
%fieldset
.sub-section
%h4
Repository checks
...
...
app/views/admin/application_settings/_repository_mirrors_form.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-mirror-settings'
)
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
repository_admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:mirror_available
,
'Enable mirror configuration'
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_repository_storage.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-repository-storage-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
repository_admin_application_settings_path
)
%fieldset
.sub-section
.form-group
...
...
app/views/admin/application_settings/_signin.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-signin-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_signup.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-signup-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_spam.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-spam-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
reporting_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_terminal.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-terminal-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:terminal_max_session_time
,
'Max session time'
,
class:
'label-bold'
...
...
app/views/admin/application_settings/_terms.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-terms-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_third_party_offers.html.haml
View file @
bfd21813
...
...
@@ -3,8 +3,6 @@
=
form_for
application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-third-party-offers-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
application_setting
)
=
hidden_field
(
:redirect_path
,
integrations_admin_application_settings_path
)
%fieldset
.form-group
.form-check
...
...
app/views/admin/application_settings/_usage.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-usage-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
metrics_and_profiling_admin_application_settings_path
)
%fieldset
.form-group.mb-2
.form-check
...
...
app/views/admin/application_settings/_visibility_and_access.html.haml
View file @
bfd21813
=
form_for
@application_setting
,
url:
admin_application_settings_path
(
anchor:
'js-visibility-settings'
),
html:
{
class:
'fieldset-form'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
hidden_field
(
:redirect_path
,
admin_application_settings_path
)
%fieldset
.form-group
=
f
.
label
:default_branch_protection
,
class:
'label-bold'
...
...
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