Commit b31c9f53 authored by Filipa Lacerda's avatar Filipa Lacerda

Commit column

parent c28df601
...@@ -76,7 +76,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -76,7 +76,7 @@ class Projects::EnvironmentsController < Projects::ApplicationController
last_deployment: { last_deployment: {
include: { include: {
user: { only: [:id, :name, :username], methods: [:avatar_url] }, user: { only: [:id, :name, :username], methods: [:avatar_url] },
deployable: { only: [:id, :name] } deployable: { only: [:id, :name, :ref, :tag, :short_sha] }
} }
} }
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
%span{ "v-if" => "model.last_deployment.user" } %span{ "v-if" => "model.last_deployment.user" }
by by
%a{":href" => "'/' + model.last_deployment.user.username"} %a{":href" => "'/' + model.last_deployment.user.username"}
%img.avatar.has-tooltip.s20{ ":src" => "model.last_deployment.user.avatar_url", %img.avatar.has-tooltip.s20{ ":src" => "model.last_deployment.user.avatar_url",
":alt" => "model.last_deployment.user.username + ' avatar'", ":alt" => "model.last_deployment.user.username + ' avatar'",
":title" => "model.last_deployment.user.username", ":title" => "model.last_deployment.user.username",
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
%td %td
%a{ "v-if" => "!isFolder && model.last_deployment" } %a{ "v-if" => "!isFolder && model.last_deployment" }
/ = render "projects/deployments/commit", deployment: "{{model.last_deployment}}" -# = render "projects/deployments/commit", deployment: "{{model.last_deployment}}"
%p.commit-title{ "v-if" => "!isFolder && !model.last_deployment"} %p.commit-title{ "v-if" => "!isFolder && !model.last_deployment"}
No deployments yet No deployments yet
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
%td %td
%a{ "v-if" => "child.last_deployment" } %a{ "v-if" => "child.last_deployment" }
/ = render "projects/deployments/commit", deployment: "{{child.last_deployment}}" -# = render "projects/deployments/commit", deployment: "{{child.last_deployment}}"
%p.commit-title{ "v-if" => "!child.last_deployment"} %p.commit-title{ "v-if" => "!child.last_deployment"}
No deployments yet No deployments yet
......
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