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
9a23492d
Commit
9a23492d
authored
Dec 03, 2021
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display tag messages with line endings
Changelog: changed
parent
549b5c3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
app/views/projects/tags/_tag.html.haml
app/views/projects/tags/_tag.html.haml
+5
-5
spec/features/projects/tags/user_edits_tags_spec.rb
spec/features/projects/tags/user_edits_tags_spec.rb
+2
-1
No files found.
app/views/projects/tags/_tag.html.haml
View file @
9a23492d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
-
release
=
@releases
.
find
{
|
release
|
release
.
tag
==
tag
.
name
}
-
release
=
@releases
.
find
{
|
release
|
release
.
tag
==
tag
.
name
}
-
commit_status
=
@tag_pipeline_statuses
[
tag
.
name
]
unless
@tag_pipeline_statuses
.
nil?
-
commit_status
=
@tag_pipeline_statuses
[
tag
.
name
]
unless
@tag_pipeline_statuses
.
nil?
%li
.flex-row.js-tag-list
{
class:
"gl-white-space-normal!"
}
%li
.flex-row.js-tag-list
{
class:
"gl-white-space-normal!
gl-align-items-flex-start!
"
}
.row-main-content
.row-main-content
=
sprite_icon
(
'tag'
)
=
sprite_icon
(
'tag'
)
=
link_to
tag
.
name
,
project_tag_path
(
@project
,
tag
.
name
),
class:
'item-title ref-name'
=
link_to
tag
.
name
,
project_tag_path
(
@project
,
tag
.
name
),
class:
'item-title ref-name'
...
@@ -11,10 +11,6 @@
...
@@ -11,10 +11,6 @@
%span
.badge.badge-success.gl-ml-2.gl-badge.sm.badge-pill
%span
.badge.badge-success.gl-ml-2.gl-badge.sm.badge-pill
=
s_
(
'TagsPage|protected'
)
=
s_
(
'TagsPage|protected'
)
-
if
tag
.
message
.
present?
=
strip_signature
(
tag
.
message
)
-
if
commit
-
if
commit
.block-truncated
.block-truncated
=
render
'projects/branches/commit'
,
commit:
commit
,
project:
@project
=
render
'projects/branches/commit'
,
commit:
commit
,
project:
@project
...
@@ -28,6 +24,10 @@
...
@@ -28,6 +24,10 @@
=
_
(
"Release"
)
=
_
(
"Release"
)
=
link_to
release
.
name
,
project_releases_path
(
@project
,
anchor:
release
.
tag
),
class:
'gl-text-blue-600!'
=
link_to
release
.
name
,
project_releases_path
(
@project
,
anchor:
release
.
tag
),
class:
'gl-text-blue-600!'
-
if
tag
.
message
.
present?
%pre
.wrap
=
strip_signature
(
tag
.
message
)
.row-fixed-content.controls.flex-row
.row-fixed-content.controls.flex-row
-
if
tag
.
has_signature?
-
if
tag
.
has_signature?
=
render
partial:
'projects/commit/signature'
,
object:
tag
.
signature
=
render
partial:
'projects/commit/signature'
,
object:
tag
.
signature
...
...
spec/features/projects/tags/user_edits_tags_spec.rb
View file @
9a23492d
...
@@ -21,7 +21,8 @@ RSpec.describe 'Project > Tags', :js do
...
@@ -21,7 +21,8 @@ RSpec.describe 'Project > Tags', :js do
context
'page with tags list'
do
context
'page with tags list'
do
it
'shows tag name'
do
it
'shows tag name'
do
expect
(
page
).
to
have_content
'v1.1.0 Version 1.1.0'
expect
(
page
).
to
have_content
'v1.1.0'
expect
(
page
).
to
have_content
'Version 1.1.0'
end
end
it
'shows tag edit button'
do
it
'shows tag edit button'
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