Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4ca52208
Commit
4ca52208
authored
Nov 12, 2019
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move project and profile links to a Base Presenter
parent
b90b96b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
16 deletions
+8
-16
lib/gitlab/slash_commands/presenters/base.rb
lib/gitlab/slash_commands/presenters/base.rb
+8
-0
lib/gitlab/slash_commands/presenters/issue_base.rb
lib/gitlab/slash_commands/presenters/issue_base.rb
+0
-8
lib/gitlab/slash_commands/presenters/note_base.rb
lib/gitlab/slash_commands/presenters/note_base.rb
+0
-8
No files found.
lib/gitlab/slash_commands/presenters/base.rb
View file @
4ca52208
...
...
@@ -73,6 +73,14 @@ module Gitlab
]
)
end
def
project_link
"[
#{
project
.
full_name
}
](
#{
project
.
web_url
}
)"
end
def
author_profile_link
"[
#{
author
.
to_reference
}
](
#{
url_for
(
author
)
}
)"
end
end
end
end
...
...
lib/gitlab/slash_commands/presenters/issue_base.rb
View file @
4ca52208
...
...
@@ -42,14 +42,6 @@ module Gitlab
]
end
def
project_link
"[
#{
project
.
full_name
}
](
#{
project
.
web_url
}
)"
end
def
author_profile_link
"[
#{
author
.
to_reference
}
](
#{
url_for
(
author
)
}
)"
end
private
attr_reader
:resource
...
...
lib/gitlab/slash_commands/presenters/note_base.rb
View file @
4ca52208
...
...
@@ -18,18 +18,10 @@ module Gitlab
issue
.
project
end
def
project_link
"[
#{
project
.
full_name
}
](
#{
project
.
web_url
}
)"
end
def
author
resource
.
author
end
def
author_profile_link
"[
#{
author
.
to_reference
}
](
#{
url_for
(
author
)
}
)"
end
def
fields
[
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment