Commit 2347d0e6 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds responsive behaviour equal to the one in Pipelines and Builds table

parent 38963040
.environments-container,
.deployments-container {
width: 100%;
overflow: auto;
}
.environments { .environments {
.deployment-column { .deployment-column {
.avatar { .avatar {
...@@ -47,7 +53,6 @@ ...@@ -47,7 +53,6 @@
} }
.table.builds.environments { .table.builds.environments {
min-width: 500px;
.icon-container { .icon-container {
width: 20px; width: 20px;
......
...@@ -16,5 +16,5 @@ ...@@ -16,5 +16,5 @@
%td %td
#{time_ago_with_tooltip(deployment.created_at)} #{time_ago_with_tooltip(deployment.created_at)}
%td %td.hidden-xs
= render 'projects/deployments/actions', deployment: deployment, allow_rollback: true = render 'projects/deployments/actions', deployment: deployment, allow_rollback: true
...@@ -27,5 +27,5 @@ ...@@ -27,5 +27,5 @@
- if last_deployment - if last_deployment
#{time_ago_with_tooltip(last_deployment.created_at)} #{time_ago_with_tooltip(last_deployment.created_at)}
%td %td.hidden-xs
= render 'projects/deployments/actions', deployment: last_deployment = render 'projects/deployments/actions', deployment: last_deployment
...@@ -9,26 +9,27 @@ ...@@ -9,26 +9,27 @@
= link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do = link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
New environment New environment
- if @environments.blank? .environments-container
.blank-state.blank-state-no-icon - if @environments.blank?
%h2.blank-state-title .blank-state.blank-state-no-icon
You don't have any environments right now. %h2.blank-state-title
%p.blank-state-text You don't have any environments right now.
Environments are places where code gets deployed, such as staging or production. %p.blank-state-text
%br Environments are places where code gets deployed, such as staging or production.
= succeed "." do %br
= link_to "Read more about environments", help_page_path("ci/environments") = succeed "." do
- if can?(current_user, :create_environment, @project) = link_to "Read more about environments", help_page_path("ci/environments")
= link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do - if can?(current_user, :create_environment, @project)
New environment = link_to new_namespace_project_environment_path(@project.namespace, @project), class: 'btn btn-create' do
- else New environment
.table-holder - else
%table.table.builds.environments .table-holder
%tbody %table.table.builds.environments
%th Environment %tbody
%th Last Deployment %th Environment
%th Build %th Last Deployment
%th Commit %th Build
%th %th Commit
%th %th
= render @environments %th.hidden-xs
= render @environments
...@@ -12,26 +12,27 @@ ...@@ -12,26 +12,27 @@
= link_to 'Edit', edit_namespace_project_environment_path(@project.namespace, @project, @environment), class: 'btn' = 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 = 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? .deployments-container
.blank-state.blank-state-no-icon - if @deployments.blank?
%h2.blank-state-title .blank-state.blank-state-no-icon
You don't have any deployments right now. %h2.blank-state-title
%p.blank-state-text You don't have any deployments right now.
Define environments in the deploy stage(s) in %p.blank-state-text
%code .gitlab-ci.yml Define environments in the deploy stage(s) in
to track deployments here. %code .gitlab-ci.yml
= link_to "Read more", help_page_path("ci/environments"), class: "btn btn-success" to track deployments here.
- else = link_to "Read more", help_page_path("ci/environments"), class: "btn btn-success"
.table-holder - else
%table.table.builds.environments .table-holder
%thead %table.table.builds.environments
%tr %thead
%th ID %tr
%th Commit %th ID
%th Build %th Commit
%th %th Build
%th %th
%th.hidden-xs
= render @deployments = render @deployments
= paginate @deployments, theme: 'gitlab' = paginate @deployments, theme: 'gitlab'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment