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
Jérome Perrin
gitlab-ce
Commits
2347d0e6
Commit
2347d0e6
authored
Oct 06, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds responsive behaviour equal to the one in Pipelines and Builds table
parent
38963040
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
47 deletions
+54
-47
app/assets/stylesheets/pages/environments.scss
app/assets/stylesheets/pages/environments.scss
+6
-1
app/views/projects/deployments/_deployment.html.haml
app/views/projects/deployments/_deployment.html.haml
+1
-1
app/views/projects/environments/_environment.html.haml
app/views/projects/environments/_environment.html.haml
+1
-1
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+24
-23
app/views/projects/environments/show.html.haml
app/views/projects/environments/show.html.haml
+22
-21
No files found.
app/assets/stylesheets/pages/environments.scss
View file @
2347d0e6
.environments-container
,
.deployments-container
{
width
:
100%
;
overflow
:
auto
;
}
.environments
{
.deployment-column
{
.avatar
{
...
...
@@ -47,7 +53,6 @@
}
.table.builds.environments
{
min-width
:
500px
;
.icon-container
{
width
:
20px
;
...
...
app/views/projects/deployments/_deployment.html.haml
View file @
2347d0e6
...
...
@@ -16,5 +16,5 @@
%td
#{
time_ago_with_tooltip
(
deployment
.
created_at
)
}
%td
%td
.hidden-xs
=
render
'projects/deployments/actions'
,
deployment:
deployment
,
allow_rollback:
true
app/views/projects/environments/_environment.html.haml
View file @
2347d0e6
...
...
@@ -27,5 +27,5 @@
-
if
last_deployment
#{
time_ago_with_tooltip
(
last_deployment
.
created_at
)
}
%td
%td
.hidden-xs
=
render
'projects/deployments/actions'
,
deployment:
last_deployment
app/views/projects/environments/index.html.haml
View file @
2347d0e6
...
...
@@ -9,26 +9,27 @@
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
-
if
@environments
.
blank?
.blank-state.blank-state-no-icon
%h2
.blank-state-title
You don't have any environments right now.
%p
.blank-state-text
Environments are places where code gets deployed, such as staging or production.
%br
=
succeed
"."
do
=
link_to
"Read more about environments"
,
help_page_path
(
"ci/environments"
)
-
if
can?
(
current_user
,
:create_environment
,
@project
)
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
-
else
.table-holder
%table
.table.builds.environments
%tbody
%th
Environment
%th
Last Deployment
%th
Build
%th
Commit
%th
%th
=
render
@environments
.environments-container
-
if
@environments
.
blank?
.blank-state.blank-state-no-icon
%h2
.blank-state-title
You don't have any environments right now.
%p
.blank-state-text
Environments are places where code gets deployed, such as staging or production.
%br
=
succeed
"."
do
=
link_to
"Read more about environments"
,
help_page_path
(
"ci/environments"
)
-
if
can?
(
current_user
,
:create_environment
,
@project
)
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
-
else
.table-holder
%table
.table.builds.environments
%tbody
%th
Environment
%th
Last Deployment
%th
Build
%th
Commit
%th
%th
.hidden-xs
=
render
@environments
app/views/projects/environments/show.html.haml
View file @
2347d0e6
...
...
@@ -12,26 +12,27 @@
=
link_to
'Edit'
,
edit_namespace_project_environment_path
(
@project
.
namespace
,
@project
,
@environment
),
class:
'btn'
=
link_to
'Destroy'
,
namespace_project_environment_path
(
@project
.
namespace
,
@project
,
@environment
),
data:
{
confirm:
'Are you sure you want to delete this environment?'
},
class:
'btn btn-danger'
,
method: :delete
-
if
@deployments
.
blank?
.blank-state.blank-state-no-icon
%h2
.blank-state-title
You don't have any deployments right now.
%p
.blank-state-text
Define environments in the deploy stage(s) in
%code
.gitlab-ci.yml
to track deployments here.
=
link_to
"Read more"
,
help_page_path
(
"ci/environments"
),
class:
"btn btn-success"
-
else
.table-holder
%table
.table.builds.environments
%thead
%tr
%th
ID
%th
Commit
%th
Build
%th
%th
.deployments-container
-
if
@deployments
.
blank?
.blank-state.blank-state-no-icon
%h2
.blank-state-title
You don't have any deployments right now.
%p
.blank-state-text
Define environments in the deploy stage(s) in
%code
.gitlab-ci.yml
to track deployments here.
=
link_to
"Read more"
,
help_page_path
(
"ci/environments"
),
class:
"btn btn-success"
-
else
.table-holder
%table
.table.builds.environments
%thead
%tr
%th
ID
%th
Commit
%th
Build
%th
%th
.hidden-xs
=
render
@deployments
=
render
@deployments
=
paginate
@deployments
,
theme:
'gitlab'
=
paginate
@deployments
,
theme:
'gitlab'
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