Commit 843e5642 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds commit links

parent dc46dc1d
...@@ -78,7 +78,8 @@ class Projects::EnvironmentsController < Projects::ApplicationController ...@@ -78,7 +78,8 @@ class Projects::EnvironmentsController < Projects::ApplicationController
user: { only: [:id, :name, :username], methods: [:avatar_url] } user: { only: [:id, :name, :username], methods: [:avatar_url] }
}, },
methods: [:short_sha, :commit_title, :deployable, :commit] methods: [:short_sha, :commit_title, :deployable, :commit]
} },
project: { methods: [:namespace]}
} }
) )
end end
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
.icon-container{ "v-if" => "!model.last_deployment.tag" } .icon-container{ "v-if" => "!model.last_deployment.tag" }
=icon("code-fork") =icon("code-fork")
%a.monospace.branch-name{":href" => ""} %a.monospace.branch-name{":href" => "'/' + model.project.namespace.name + '/' + model.project.name + '/commits/' +model.last_deployment.ref"}
-# need commits branch name url
{{model.last_deployment.ref}} {{model.last_deployment.ref}}
.icon-container.commit-icon .icon-container.commit-icon
......
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