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
Boxiang Sun
gitlab-ce
Commits
03f136fc
Commit
03f136fc
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
72c179ef
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
11 deletions
+11
-11
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
No files found.
app/views/clusters/clusters/show.html.haml
View file @
03f136fc
...
...
@@ -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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
-
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 @
03f136fc
...
...
@@ -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
)
}
...
...
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