Commit f5d9b994 authored by Filipa Lacerda's avatar Filipa Lacerda

Use urls sent in JSON response

parent 1b00f3a5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%tr %tr
%td{"v-bind:class" => "{ 'children-row': isChildren}" } %td{"v-bind:class" => "{ 'children-row': isChildren}" }
%a.environment-name{ "v-if" => "!isFolder", %a.environment-name{ "v-if" => "!isFolder",
":href" => "'#{namespace_project_environments_path(@project.namespace, @project)}/' + model.id" } ":href" => "model.environment_url" }
{{model.name}} {{model.name}}
%span.folder-name{ "v-if" => "isFolder", %span.folder-name{ "v-if" => "isFolder",
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
%span{ "v-if" => "model.last_deployment.user" } %span{ "v-if" => "model.last_deployment.user" }
by by
%a{":href" => "'/' + model.last_deployment.user.username" } %a{":href" => "model.last_deployment.user.web_url" }
%img.avatar.has_tooltip.s20{ ":src" => "model.last_deployment.user.avatar_url", %img.avatar.has_tooltip.s20{ ":src" => "model.last_deployment.user.avatar_url",
":alt" => "model.last_deployment.user.username + `'s avatar`", ":alt" => "model.last_deployment.user.username + `'s avatar`",
":title" => "model.last_deployment.user.username", ":title" => "model.last_deployment.user.username",
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
%td %td
%a.build-link{ "v-if" => "!isFolder && model.last_deployment && model.last_deployment.deployable", %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" } ":href" => "model.last_deployment.deployable.build_url" }
{{model.last_deployment.deployable.name}} {{model.last_deployment.deployable.name}}
= precede "#" do = precede "#" do
{{model.last_deployment.deployable.id}} {{model.last_deployment.deployable.id}}
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
%td %td
%span{ "v-if" => "!isFolder && model.last_deployment" } %span{ "v-if" => "!isFolder && model.last_deployment" }
{{model.last_deployment.created_at}} {{model.created_at}}
%td.hidden-xs %td.hidden-xs
.pull-right{ "v-if" => "!isFolder" } .pull-right{ "v-if" => "!isFolder" }
......
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