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
e570948e
Commit
e570948e
authored
Feb 04, 2021
by
Yogi
Committed by
Phil Hughes
Feb 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply new GitLab UI for buttons in tags page
parent
745d126a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
app/views/projects/buttons/_remove_tag.html.haml
app/views/projects/buttons/_remove_tag.html.haml
+1
-1
app/views/projects/tags/_tag.html.haml
app/views/projects/tags/_tag.html.haml
+1
-1
app/views/projects/tags/index.html.haml
app/views/projects/tags/index.html.haml
+2
-2
changelogs/unreleased/gl-button-tags.yml
changelogs/unreleased/gl-button-tags.yml
+5
-0
No files found.
app/views/projects/buttons/_remove_tag.html.haml
View file @
e570948e
...
...
@@ -2,5 +2,5 @@
-
tag
=
local_assigns
.
fetch
(
:tag
,
nil
)
-
return
unless
project
&&
tag
%button
{
type:
"button"
,
class:
"js-remove-tag js-confirm-modal-button gl-button btn btn-danger remove-row has-tooltip gl-ml-3 #{protected_tag?(project, tag) ? 'disabled' : ''}"
,
title:
s_
(
'TagsPage|Delete tag'
),
data:
{
container:
'body'
,
path:
project_tag_path
(
@project
,
tag
.
name
),
modal_attributes:
delete_tag_modal_attributes
(
tag
.
name
)
}
}
%button
{
type:
"button"
,
class:
"js-remove-tag js-confirm-modal-button gl-button btn btn-danger
btn-icon
remove-row has-tooltip gl-ml-3 #{protected_tag?(project, tag) ? 'disabled' : ''}"
,
title:
s_
(
'TagsPage|Delete tag'
),
data:
{
container:
'body'
,
path:
project_tag_path
(
@project
,
tag
.
name
),
modal_attributes:
delete_tag_modal_attributes
(
tag
.
name
)
}
}
=
sprite_icon
(
"remove"
)
app/views/projects/tags/_tag.html.haml
View file @
e570948e
...
...
@@ -41,6 +41,6 @@
=
render
'projects/buttons/download'
,
project:
@project
,
ref:
tag
.
name
,
pipeline:
@tags_pipelines
[
tag
.
name
]
-
if
can?
(
current_user
,
:admin_tag
,
@project
)
=
link_to
edit_project_tag_release_path
(
@project
,
tag
.
name
),
class:
'btn btn-edit has-tooltip'
,
title:
s_
(
'TagsPage|Edit release notes'
),
data:
{
container:
"body"
}
do
=
link_to
edit_project_tag_release_path
(
@project
,
tag
.
name
),
class:
'btn
gl-button btn-default btn-icon
btn-edit has-tooltip'
,
title:
s_
(
'TagsPage|Edit release notes'
),
data:
{
container:
"body"
}
do
=
sprite_icon
(
"pencil"
)
=
render
'projects/buttons/remove_tag'
,
project:
@project
,
tag:
tag
app/views/projects/tags/index.html.haml
View file @
e570948e
...
...
@@ -24,9 +24,9 @@
%li
=
link_to
title
,
filter_tags_path
(
sort:
value
),
class:
(
"is-active"
if
@sort
==
value
)
-
if
can?
(
current_user
,
:admin_tag
,
@project
)
=
link_to
new_project_tag_path
(
@project
),
class:
'btn
btn-success new-tag-btn
'
,
data:
{
qa_selector:
"new_tag_button"
}
do
=
link_to
new_project_tag_path
(
@project
),
class:
'btn
gl-button btn-success
'
,
data:
{
qa_selector:
"new_tag_button"
}
do
=
s_
(
'TagsPage|New tag'
)
=
link_to
project_tags_path
(
@project
,
rss_url_options
),
title:
_
(
"Tags feed"
),
class:
'btn
btn-svg
d-none d-sm-inline-block has-tooltip'
do
=
link_to
project_tags_path
(
@project
,
rss_url_options
),
title:
_
(
"Tags feed"
),
class:
'btn
gl-button btn-default btn-icon
d-none d-sm-inline-block has-tooltip'
do
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
)
=
render_if_exists
'projects/commits/mirror_status'
...
...
changelogs/unreleased/gl-button-tags.yml
0 → 100644
View file @
e570948e
---
title
:
Apply new GitLab UI for buttons in tags page
merge_request
:
52862
author
:
Yogi (@yo)
type
:
other
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