Commit dc46dc1d authored by Filipa Lacerda's avatar Filipa Lacerda

Adds commit back

parent a60e6f14
...@@ -75,10 +75,9 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -75,10 +75,9 @@ class Projects::EnvironmentsController < Projects::ApplicationController
include: { include: {
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, :ref, :tag] }
}, },
methods: [:short_sha, :commit_title, :commit] methods: [:short_sha, :commit_title, :deployable, :commit]
} }
} }
) )
......
...@@ -9,19 +9,24 @@ ...@@ -9,19 +9,24 @@
=icon("code-fork") =icon("code-fork")
%a.monospace.branch-name{":href" => ""} %a.monospace.branch-name{":href" => ""}
-# need commits branch name url
{{model.last_deployment.ref}} {{model.last_deployment.ref}}
.icon-container.commit-icon .icon-container.commit-icon
= custom_icon("icon_commit") = custom_icon("icon_commit")
%a.commit-id.monospace{":href" => ""} %a.commit-id.monospace{":href" => ""}
-# need commit url built with commit sha
{{model.last_deployment.short_sha}} {{model.last_deployment.short_sha}}
{{model.last_deployment.sha}}
%p.commit-title %p.commit-title
%span{ "v-if" => "model.last_deployment.commit_title"} %span{ "v-if" => "model.last_deployment.commit_title"}
-# need commit author username and avatar_url
commit author goes here
%a.commit-row-message{":href" => ""} %a.commit-row-message{":href" => ""}
-# need commit url built with commit sha
{{model.last_deployment.commit_title}} {{model.last_deployment.commit_title}}
%span{ "v-if" => "!model.last_deployment.commit_title"} %span{ "v-if" => "!model.last_deployment.commit_title"}
......
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