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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-27 15:09:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-27 15:09:50 +0300
commit8827c1d18473a3d84db181c89212975418a25e37 (patch)
tree3f16c4b02b0b46fb2f501a6d5e9fc0f93f1a406f /lib/gitlab/slash_commands
parent43b35a88ca54379d8df4dad84b5a84f9eecae3f2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/slash_commands')
-rw-r--r--lib/gitlab/slash_commands/presenters/base.rb1
-rw-r--r--lib/gitlab/slash_commands/presenters/issue_search.rb6
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/gitlab/slash_commands/presenters/base.rb b/lib/gitlab/slash_commands/presenters/base.rb
index b60f0b78fef..b8affb42372 100644
--- a/lib/gitlab/slash_commands/presenters/base.rb
+++ b/lib/gitlab/slash_commands/presenters/base.rb
@@ -69,7 +69,6 @@ module Gitlab
def resource_url
url_for(
[
- resource.project.namespace.becomes(Namespace),
resource.project,
resource
]
diff --git a/lib/gitlab/slash_commands/presenters/issue_search.rb b/lib/gitlab/slash_commands/presenters/issue_search.rb
index fffa082baac..f5b1670b2e9 100644
--- a/lib/gitlab/slash_commands/presenters/issue_search.rb
+++ b/lib/gitlab/slash_commands/presenters/issue_search.rb
@@ -22,7 +22,7 @@ module Gitlab
def attachments
resource.map do |issue|
- url = "[#{issue.to_reference}](#{url_for([namespace, project, issue])})"
+ url = "[#{issue.to_reference}](#{url_for([project, issue])})"
{
color: color(issue),
@@ -39,10 +39,6 @@ module Gitlab
def project
@project ||= resource.first.project
end
-
- def namespace
- @namespace ||= project.namespace.becomes(Namespace)
- end
end
end
end