diff options
Diffstat (limited to 'app/views/projects/environments/components/_environment.html.haml')
-rw-r--r-- | app/views/projects/environments/components/_environment.html.haml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/app/views/projects/environments/components/_environment.html.haml b/app/views/projects/environments/components/_environment.html.haml index 8dd477d11ec..fe34730440f 100644 --- a/app/views/projects/environments/components/_environment.html.haml +++ b/app/views/projects/environments/components/_environment.html.haml @@ -29,9 +29,8 @@ width: 20, height: 20 } %td - %a{ "v-if" => "!isFolder && model.last_deployment && model.last_deployment.deployable", - ":class" => "build-link", - ":href" => "" } + %a.build-link{ "v-if" => "!isFolder && model.last_deployment && model.last_deployment.deployable", + ":href" => "'#{namespace_project_builds_path(@project.namespace, @project)}/' + model.last_deployment.deployable.id" } {{model.last_deployment.deployable.name}} (## {{model.last_deployment.deployable.id}}) %td @@ -75,10 +74,9 @@ width: 20, height: 20 } %td - %a{ "v-if" => " child.last_deployment && child.last_deployment.deployable", - ":class" => "build-link", - ":href" => "" } - {{chil.last_deployment.deployable.name}} (## {{child.last_deployment.deployable.id}}) + %a.build-link{ "v-if" => "child.last_deployment && child.last_deployment.deployable", + ":href" => "'#{namespace_project_builds_path(@project.namespace, @project)}/' + child.last_deployment.deployable.id" } + {{child.last_deployment.deployable.name}} (## {{child.last_deployment.deployable.id}}) %td %a{ "v-if" => "child.last_deployment" } |