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
342bcc72
Commit
342bcc72
authored
Jan 15, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
e2761f05
6357ff11
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
14 deletions
+23
-14
app/assets/javascripts/environments/components/environments_app.vue
.../javascripts/environments/components/environments_app.vue
+3
-3
app/assets/javascripts/environments/components/environments_table.vue
...avascripts/environments/components/environments_table.vue
+3
-3
app/assets/javascripts/environments/folder/environments_folder_bundle.js
...scripts/environments/folder/environments_folder_bundle.js
+4
-4
app/helpers/environments_helper.rb
app/helpers/environments_helper.rb
+9
-0
app/views/projects/environments/folder.html.haml
app/views/projects/environments/folder.html.haml
+1
-4
db/fixtures/development/10_merge_requests.rb
db/fixtures/development/10_merge_requests.rb
+3
-0
No files found.
app/assets/javascripts/environments/components/environments_app.vue
View file @
342bcc72
...
...
@@ -106,9 +106,9 @@ export default {
<tabs
:tabs=
"tabs"
scope=
"environments"
@
onChangeTab=
"onChangeTab"
/>
<div
v-if=
"canCreateEnvironment && !isLoading"
class=
"nav-controls"
>
<a
:href=
"newEnvironmentPath"
class=
"btn btn-success"
>
{{
s__
(
'
Environments|New environment
'
)
}}
</a>
<a
:href=
"newEnvironmentPath"
class=
"btn btn-success"
>
{{
s__
(
'
Environments|New environment
'
)
}}
</a>
</div>
</div>
...
...
app/assets/javascripts/environments/components/environments_table.vue
View file @
342bcc72
...
...
@@ -103,9 +103,9 @@ export default {
<div
:key=
"`sub-div-$
{i}`">
<div
class=
"text-center prepend-top-10"
>
<a
:href=
"folderUrl(model)"
class=
"btn btn-default"
>
{{
s__
(
'
Environments|Show all
'
)
}}
</a>
<a
:href=
"folderUrl(model)"
class=
"btn btn-default"
>
{{
s__
(
'
Environments|Show all
'
)
}}
</a>
</div>
</div>
</
template
>
...
...
app/assets/javascripts/environments/folder/environments_folder_bundle.js
View file @
342bcc72
...
...
@@ -15,11 +15,11 @@ export default () =>
const
environmentsData
=
document
.
querySelector
(
this
.
$options
.
el
).
dataset
;
return
{
endpoint
:
environmentsData
.
endpoint
,
folderName
:
environmentsData
.
f
olderName
,
endpoint
:
environmentsData
.
en
vironmentsDataEn
dpoint
,
folderName
:
environmentsData
.
environmentsDataF
olderName
,
cssContainerClass
:
environmentsData
.
cssClass
,
canCreateDeployment
:
parseBoolean
(
environmentsData
.
c
anCreateDeployment
),
canReadEnvironment
:
parseBoolean
(
environmentsData
.
c
anReadEnvironment
),
canCreateDeployment
:
parseBoolean
(
environmentsData
.
environmentsDataC
anCreateDeployment
),
canReadEnvironment
:
parseBoolean
(
environmentsData
.
environmentsDataC
anReadEnvironment
),
};
},
render
(
createElement
)
{
...
...
app/helpers/environments_helper.rb
View file @
342bcc72
...
...
@@ -9,6 +9,15 @@ module EnvironmentsHelper
}
end
def
environments_folder_list_view_data
{
"endpoint"
=>
folder_project_environments_path
(
@project
,
@folder
,
format: :json
),
"folder-name"
=>
@folder
,
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@project
).
to_s
,
"can-read-environment"
=>
can?
(
current_user
,
:read_environment
,
@project
).
to_s
}
end
def
metrics_data
(
project
,
environment
)
{
"settings-path"
=>
edit_project_service_path
(
project
,
'prometheus'
),
...
...
app/views/projects/environments/folder.html.haml
View file @
342bcc72
-
@no_container
=
true
-
page_title
_
(
"Environments"
)
#environments-folder-list-view
{
data:
{
endpoint:
folder_project_environments_path
(
@project
,
@folder
,
format: :json
),
"folder-name"
=>
@folder
,
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@project
).
to_s
,
"can-read-environment"
=>
can?
(
current_user
,
:read_environment
,
@project
).
to_s
,
#environments-folder-list-view
{
data:
{
environments_data:
environments_folder_list_view_data
,
"css-class"
=>
container_class
}
}
db/fixtures/development/10_merge_requests.rb
View file @
342bcc72
...
...
@@ -27,6 +27,9 @@ Gitlab::Seeder.quiet do
Sidekiq
::
Worker
.
skipping_transaction_check
do
MergeRequests
::
CreateService
.
new
(
project
,
developer
,
params
).
execute
rescue
Repository
::
AmbiguousRefError
# Ignore pipelines creation errors for now, we can doing that after
# https://gitlab.com/gitlab-org/gitlab-ce/issues/55966. will be resolved.
end
print
'.'
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