BigW Consortium Gitlab

Commit dc46dc1d by Filipa Lacerda

Adds commit back

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