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

Adds commit links

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