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
285ba6b0
Commit
285ba6b0
authored
Apr 29, 2019
by
Peter Leitzen
Committed by
Fatih Acet
Apr 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer usage of helper `expanded_by_default?`
Stop using `Rails.env.test?` in views.
parent
45f4a58e
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
17 additions
and
17 deletions
+17
-17
app/views/clusters/clusters/show.html.haml
app/views/clusters/clusters/show.html.haml
+1
-1
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+1
-1
app/views/groups/settings/ci_cd/show.html.haml
app/views/groups/settings/ci_cd/show.html.haml
+1
-1
app/views/projects/cleanup/_show.html.haml
app/views/projects/cleanup/_show.html.haml
+1
-1
app/views/projects/default_branch/_show.html.haml
app/views/projects/default_branch/_show.html.haml
+1
-1
app/views/projects/deploy_keys/_index.html.haml
app/views/projects/deploy_keys/_index.html.haml
+1
-1
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+1
-1
app/views/projects/mirrors/_mirror_repos.html.haml
app/views/projects/mirrors/_mirror_repos.html.haml
+1
-1
app/views/projects/protected_branches/shared/_index.html.haml
...views/projects/protected_branches/shared/_index.html.haml
+1
-1
app/views/projects/protected_tags/shared/_index.html.haml
app/views/projects/protected_tags/shared/_index.html.haml
+1
-1
app/views/projects/settings/ci_cd/show.html.haml
app/views/projects/settings/ci_cd/show.html.haml
+1
-1
ee/app/views/groups/_custom_project_templates_setting.html.haml
.../views/groups/_custom_project_templates_setting.html.haml
+1
-1
ee/app/views/projects/_service_desk_settings.html.haml
ee/app/views/projects/_service_desk_settings.html.haml
+1
-1
ee/app/views/projects/push_rules/_index.html.haml
ee/app/views/projects/push_rules/_index.html.haml
+1
-1
ee/app/views/projects/settings/_default_issue_template.html.haml
...views/projects/settings/_default_issue_template.html.haml
+1
-1
ee/app/views/projects/settings/ci_cd/_managed_licenses.html.haml
...views/projects/settings/ci_cd/_managed_licenses.html.haml
+1
-1
ee/app/views/projects/settings/ci_cd/_protected_environments.html.haml
...projects/settings/ci_cd/_protected_environments.html.haml
+1
-1
No files found.
app/views/clusters/clusters/show.html.haml
View file @
285ba6b0
...
...
@@ -4,7 +4,7 @@
-
page_title
_
(
'Kubernetes Cluster'
)
-
manage_prometheus_path
=
edit_project_service_path
(
@cluster
.
project
,
'prometheus'
)
if
@project
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
-
status_path
=
clusterable
.
cluster_status_cluster_path
(
@cluster
.
id
,
format: :json
)
if
can?
(
current_user
,
:admin_cluster
,
@cluster
)
.edit-cluster-form.js-edit-cluster-form
{
data:
{
status_path:
status_path
,
...
...
app/views/groups/edit.html.haml
View file @
285ba6b0
-
breadcrumb_title
"General Settings"
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.gs-general.no-animate
#js-general-settings
{
class:
(
'expanded'
)
}
...
...
app/views/groups/settings/ci_cd/show.html.haml
View file @
285ba6b0
-
breadcrumb_title
"CI / CD Settings"
-
page_title
"CI / CD"
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings
#ci-variables
.no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
...
...
app/views/projects/cleanup/_show.html.haml
View file @
285ba6b0
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.no-animate
#cleanup
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
...
...
app/views/projects/default_branch/_show.html.haml
View file @
285ba6b0
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.no-animate
#default-branch-settings
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
...
...
app/views/projects/deploy_keys/_index.html.haml
View file @
285ba6b0
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.qa-deploy-keys-settings.settings.no-animate
#js-deploy-keys-settings
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
...
...
app/views/projects/edit.html.haml
View file @
285ba6b0
-
breadcrumb_title
_
(
"General Settings"
)
-
page_title
_
(
"General"
)
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.general-settings.no-animate.expanded
#js-general-settings
.settings-header
...
...
app/views/projects/mirrors/_mirror_repos.html.haml
View file @
285ba6b0
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
-
protocols
=
Gitlab
::
UrlSanitizer
::
ALLOWED_SCHEMES
.
join
(
'|'
)
%section
.settings.project-mirror-settings.js-mirror-settings.no-animate.qa-mirroring-repositories-settings
#js-push-remote-settings
{
class:
(
'expanded'
if
expanded
)
}
...
...
app/views/projects/protected_branches/shared/_index.html.haml
View file @
285ba6b0
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.qa-protected-branches-settings.settings.no-animate
#js-protected-branches-settings
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
...
...
app/views/projects/protected_tags/shared/_index.html.haml
View file @
285ba6b0
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.no-animate
#js-protected-tags-settings
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
...
...
app/views/projects/settings/ci_cd/show.html.haml
View file @
285ba6b0
...
...
@@ -2,7 +2,7 @@
-
page_title
_
(
"CI / CD Settings"
)
-
page_title
_
(
"CI / CD"
)
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
-
general_expanded
=
@project
.
errors
.
empty?
?
expanded
:
true
%section
.settings
#js-general-pipeline-settings
.no-animate
{
class:
(
'expanded'
if
general_expanded
)
}
...
...
ee/app/views/groups/_custom_project_templates_setting.html.haml
View file @
285ba6b0
-
return
unless
::
Gitlab
::
CurrentSettings
.
custom_project_templates_enabled?
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.no-animate.qa-custom-project-templates
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
...
...
ee/app/views/projects/_service_desk_settings.html.haml
View file @
285ba6b0
-
if
EE
::
Gitlab
::
ServiceDesk
.
enabled?
(
project:
@project
)
||
(
show_promotions?
&&
show_callout?
(
'promote_service_desk_dismissed'
))
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.js-service-desk-setting-wrapper.no-animate
#js-service-desk
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Service Desk'
)
...
...
ee/app/views/projects/push_rules/_index.html.haml
View file @
285ba6b0
-
return
unless
@project
.
feature_available?
(
:push_rules
)
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.no-animate
#js-push-rules
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
...
...
ee/app/views/projects/settings/_default_issue_template.html.haml
View file @
285ba6b0
-
if
@project
.
feature_available?
(
:issuable_default_templates
)
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.issues-feature.no-animate
#js-issue-settings
{
class:
[(
'expanded'
if
expanded
),
(
'hidden'
if
@project
.
project_feature
.
send
(
:issues_access_level
)
==
0
)]
}
.settings-header
%h4
.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
=
_
(
'Default issue template'
)
...
...
ee/app/views/projects/settings/ci_cd/_managed_licenses.html.haml
View file @
285ba6b0
-
return
unless
@project
.
feature_available?
(
:license_management
)
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
%section
.settings.no-animate
#js-license-management
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
...
...
ee/app/views/projects/settings/ci_cd/_protected_environments.html.haml
View file @
285ba6b0
-
expanded
=
Rails
.
env
.
tes
t?
-
expanded
=
expanded_by_defaul
t?
-
can_admin_project
=
can?
(
current_user
,
:admin_project
,
@project
)
-
if
protected_environments_enabled?
(
@project
)
...
...
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