debian-mirror-gitlab/app/views/projects/environments/_environment.html.haml

36 lines
1.2 KiB
Text
Raw Normal View History

- last_deployment = environment.last_deployment
%tr.environment
%td
2016-09-13 17:45:13 +05:30
= link_to environment.name, namespace_project_environment_path(@project.namespace, @project, environment)
2016-11-03 12:29:30 +05:30
%td.deployment-column
2016-09-13 17:45:13 +05:30
- if last_deployment
2016-11-03 12:29:30 +05:30
%span ##{last_deployment.iid}
- if last_deployment.user
by
= user_avatar(user: last_deployment.user, size: 20)
%td
- if last_deployment && last_deployment.deployable
= link_to [@project.namespace.becomes(Namespace), @project, last_deployment.deployable], class: 'build-link' do
= "#{last_deployment.deployable.name} (##{last_deployment.deployable.id})"
%td
- if last_deployment
= render 'projects/deployments/commit', deployment: last_deployment
- else
%p.commit-title
No deployments yet
%td
- if last_deployment
#{time_ago_with_tooltip(last_deployment.created_at)}
2016-08-24 12:49:21 +05:30
2016-11-03 12:29:30 +05:30
%td.hidden-xs
.pull-right
= render 'projects/environments/external_url', environment: environment
= render 'projects/deployments/actions', deployment: last_deployment
= render 'projects/environments/stop', environment: environment
= render 'projects/deployments/rollback', deployment: last_deployment