Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-11-30 14:57:38 +0300
committerFilipa Lacerda <filipa@gitlab.com>2016-12-07 13:41:35 +0300
commit186c4dd7b4f6d4edc68c6fd65703665d14877e3e (patch)
tree9819280d0ecb67630d44db0c5483840c45f809f2 /app/helpers/environment_helper.rb
parent5186618bb0220383ae4668b7d023bfbbb52c8948 (diff)
Fix broken link for latest deployment
Updates changelog with MR ID
Diffstat (limited to 'app/helpers/environment_helper.rb')
-rw-r--r--app/helpers/environment_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/environment_helper.rb b/app/helpers/environment_helper.rb
index 27975b7ddb7..5fde912ab2c 100644
--- a/app/helpers/environment_helper.rb
+++ b/app/helpers/environment_helper.rb
@@ -20,6 +20,12 @@ module EnvironmentHelper
link_to "##{deployment.iid}", [deployment.project.namespace.becomes(Namespace), deployment.project, deployment.deployable]
end
+ def last_deployment_link(deployment, link_text)
+ return unless deployment
+
+ link_to link_text, [deployment.project.namespace.becomes(Namespace), deployment.project, deployment.deployable]
+ end
+
def last_deployment_link_for_environment_build(project, build)
environment = environment_for_build(project, build)
return unless environment