BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d95ac1b6
Commit
d95ac1b6
authored
Mar 02, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dm-group-reference-full-name' into 'master'
Use full group name in GFM group reference title See merge request !9642
parents
bb062ebd
6fd28ff2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
dm-group-reference-full-name.yml
changelogs/unreleased/dm-group-reference-full-name.yml
+4
-0
user_reference_filter.rb
lib/banzai/filter/user_reference_filter.rb
+1
-1
user_reference_filter_spec.rb
spec/lib/banzai/filter/user_reference_filter_spec.rb
+6
-0
No files found.
changelogs/unreleased/dm-group-reference-full-name.yml
0 → 100644
View file @
d95ac1b6
---
title
:
Use full group name in GFM group reference title
merge_request
:
author
:
lib/banzai/filter/user_reference_filter.rb
View file @
d95ac1b6
...
...
@@ -133,7 +133,7 @@ module Banzai
data
=
data_attribute
(
group:
namespace
.
id
)
content
=
link_content
||
Group
.
reference_prefix
+
group
link_tag
(
url
,
data
,
content
,
namespace
.
name
)
link_tag
(
url
,
data
,
content
,
namespace
.
full_
name
)
end
def
link_to_user
(
user
,
namespace
,
link_content:
nil
)
...
...
spec/lib/banzai/filter/user_reference_filter_spec.rb
View file @
d95ac1b6
...
...
@@ -123,6 +123,12 @@ describe Banzai::Filter::UserReferenceFilter, lib: true do
expect
(
doc
.
css
(
'a'
).
first
.
attr
(
'href'
)).
to
eq
urls
.
group_url
(
group
)
end
it
'has the full group name as a title'
do
doc
=
reference_filter
(
"Hey
#{
reference
}
"
)
expect
(
doc
.
css
(
'a'
).
first
.
attr
(
'title'
)).
to
eq
group
.
full_name
end
end
it
'links with adjacent text'
do
...
...
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