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
892c47c4
Commit
892c47c4
authored
Jul 22, 2020
by
Paul Gascou-Vaillancourt
Committed by
Miguel Rincon
Jul 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace fa-rss with GitLab SVG icon
parent
8f5a80e9
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
27 additions
and
20 deletions
+27
-20
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+4
-0
app/views/dashboard/_activities.html.haml
app/views/dashboard/_activities.html.haml
+2
-2
app/views/groups/_activities.html.haml
app/views/groups/_activities.html.haml
+2
-2
app/views/help/ui.html.haml
app/views/help/ui.html.haml
+2
-2
app/views/projects/_activity.html.haml
app/views/projects/_activity.html.haml
+2
-2
app/views/projects/commits/show.html.haml
app/views/projects/commits/show.html.haml
+2
-2
app/views/projects/tags/index.html.haml
app/views/projects/tags/index.html.haml
+2
-2
app/views/shared/issuable/_feed_buttons.html.haml
app/views/shared/issuable/_feed_buttons.html.haml
+2
-2
app/views/users/show.html.haml
app/views/users/show.html.haml
+2
-2
changelogs/unreleased/225947-replace-fa-rss.yml
changelogs/unreleased/225947-replace-fa-rss.yml
+5
-0
spec/support/shared_examples/features/rss_shared_examples.rb
spec/support/shared_examples/features/rss_shared_examples.rb
+2
-4
No files found.
app/assets/stylesheets/framework/buttons.scss
View file @
892c47c4
...
@@ -495,6 +495,10 @@
...
@@ -495,6 +495,10 @@
}
}
}
}
// The .btn-svg class is available for legacy icon buttons to
// preserve a 34px height and have 16x16 icons at the same time.
// Once a button is migrated (to the current 32px height)
// please remove this class from the new button.
.btn-svg
svg
{
.btn-svg
svg
{
@include
btn-svg
;
@include
btn-svg
;
}
}
...
...
app/views/dashboard/_activities.html.haml
View file @
892c47c4
.nav-block.activities
.nav-block.activities
=
render
'shared/event_filter'
=
render
'shared/event_filter'
.controls
.controls
=
link_to
dashboard_projects_path
(
rss_url_options
),
class:
'btn
d-none d-sm-inline-block
has-tooltip'
,
title:
'Subscribe'
do
=
link_to
dashboard_projects_path
(
rss_url_options
),
class:
'btn
gl-button btn-default btn-icon d-none d-sm-inline-flex
has-tooltip'
,
title:
'Subscribe'
do
%i
.fa.fa-rss
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon gl-icon'
,
size:
16
)
.content_list
.content_list
.loading
.loading
...
...
app/views/groups/_activities.html.haml
View file @
892c47c4
.nav-block.activities
.nav-block.activities
=
render
'shared/event_filter'
,
show_group_events:
@group
.
supports_events?
=
render
'shared/event_filter'
,
show_group_events:
@group
.
supports_events?
.controls
.controls
=
link_to
group_path
(
@group
,
rss_url_options
),
class:
'btn
d-none d-sm-inline-block
has-tooltip'
,
title:
'Subscribe'
do
=
link_to
group_path
(
@group
,
rss_url_options
),
class:
'btn
gl-button btn-default btn-icon d-none d-sm-inline-flex
has-tooltip'
,
title:
'Subscribe'
do
%i
.fa.fa-rss
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon gl-icon'
,
size:
16
)
.content_list
.content_list
.loading
.loading
...
...
app/views/help/ui.html.haml
View file @
892c47c4
...
@@ -69,8 +69,8 @@
...
@@ -69,8 +69,8 @@
=
render
layout:
'users/cover_controls'
do
=
render
layout:
'users/cover_controls'
do
=
link_to
'#'
,
class:
link_classes
+
'btn btn-default'
do
=
link_to
'#'
,
class:
link_classes
+
'btn btn-default'
do
=
sprite_icon
(
'pencil'
)
=
sprite_icon
(
'pencil'
)
=
link_to
'#'
,
class:
link_classes
+
'btn btn-default'
do
=
link_to
'#'
,
class:
link_classes
+
'btn btn-
svg btn-
default'
do
=
icon
(
'rss'
)
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
,
size:
16
)
.avatar-holder
.avatar-holder
=
image_tag
avatar_icon_for_email
(
'admin@example.com'
,
90
),
class:
"avatar s90"
,
alt:
''
=
image_tag
avatar_icon_for_email
(
'admin@example.com'
,
90
),
class:
"avatar s90"
,
alt:
''
.cover-title
.cover-title
...
...
app/views/projects/_activity.html.haml
View file @
892c47c4
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
.nav-block.d-none.d-sm-flex.activities.gl-static
.nav-block.d-none.d-sm-flex.activities.gl-static
=
render
'shared/event_filter'
=
render
'shared/event_filter'
.controls.gl-display-flex
.controls.gl-display-flex
=
link_to
project_path
(
@project
,
rss_url_options
),
title:
s_
(
"ProjectActivityRSS|Subscribe"
),
class:
'btn
d-none d-sm-inline-block
has-tooltip'
do
=
link_to
project_path
(
@project
,
rss_url_options
),
title:
s_
(
"ProjectActivityRSS|Subscribe"
),
class:
'btn
gl-button btn-default btn-icon d-none d-sm-inline-flex
has-tooltip'
do
=
icon
(
'rss'
)
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon gl-icon'
,
size:
16
)
-
if
is_project_overview
&&
can?
(
current_user
,
:download_code
,
@project
)
-
if
is_project_overview
&&
can?
(
current_user
,
:download_code
,
@project
)
.project-clone-holder.d-none.d-md-inline-flex.gl-ml-2
.project-clone-holder.d-none.d-md-inline-flex.gl-ml-2
=
render
"projects/buttons/clone"
,
dropdown_class:
'dropdown-menu-right'
=
render
"projects/buttons/clone"
,
dropdown_class:
'dropdown-menu-right'
...
...
app/views/projects/commits/show.html.haml
View file @
892c47c4
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
=
form_tag
(
project_commits_path
(
@project
,
@id
),
method: :get
,
class:
'commits-search-form js-signature-container'
,
data:
{
'signatures-path'
=>
namespace_project_signatures_path
})
do
=
form_tag
(
project_commits_path
(
@project
,
@id
),
method: :get
,
class:
'commits-search-form js-signature-container'
,
data:
{
'signatures-path'
=>
namespace_project_signatures_path
})
do
=
search_field_tag
:search
,
params
[
:search
],
{
placeholder:
_
(
'Search by message'
),
id:
'commits-search'
,
class:
'form-control search-text-input input-short gl-mt-3 gl-sm-mt-0 gl-min-w-full'
,
spellcheck:
false
}
=
search_field_tag
:search
,
params
[
:search
],
{
placeholder:
_
(
'Search by message'
),
id:
'commits-search'
,
class:
'form-control search-text-input input-short gl-mt-3 gl-sm-mt-0 gl-min-w-full'
,
spellcheck:
false
}
.control.d-none.d-md-block
.control.d-none.d-md-block
=
link_to
project_commits_path
(
@project
,
@ref
,
rss_url_options
),
title:
_
(
"Commits feed"
),
class:
'btn'
do
=
link_to
project_commits_path
(
@project
,
@ref
,
rss_url_options
),
title:
_
(
"Commits feed"
),
class:
'btn
btn-svg
'
do
=
icon
(
"rss"
)
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
,
size:
16
)
=
render_if_exists
'projects/commits/mirror_status'
=
render_if_exists
'projects/commits/mirror_status'
...
...
app/views/projects/tags/index.html.haml
View file @
892c47c4
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
-
if
can?
(
current_user
,
:admin_tag
,
@project
)
-
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 btn-success new-tag-btn'
,
data:
{
qa_selector:
"new_tag_button"
}
do
=
s_
(
'TagsPage|New tag'
)
=
s_
(
'TagsPage|New tag'
)
=
link_to
project_tags_path
(
@project
,
rss_url_options
),
title:
_
(
"Tags feed"
),
class:
'btn d-none d-sm-inline-block has-tooltip'
do
=
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
=
icon
(
"rss"
)
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
,
size:
16
)
=
render_if_exists
'projects/commits/mirror_status'
=
render_if_exists
'projects/commits/mirror_status'
...
...
app/views/shared/issuable/_feed_buttons.html.haml
View file @
892c47c4
=
link_to
safe_params
.
merge
(
rss_url_options
),
class:
'btn
has-tooltip js-rss-button
'
,
data:
{
container:
'body'
},
title:
_
(
'Subscribe to RSS feed'
)
do
=
link_to
safe_params
.
merge
(
rss_url_options
),
class:
'btn
btn-svg has-tooltip
'
,
data:
{
container:
'body'
},
title:
_
(
'Subscribe to RSS feed'
)
do
=
sprite_icon
(
'rss'
)
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
,
size:
16
)
=
link_to
safe_params
.
merge
(
calendar_url_options
),
class:
'btn has-tooltip'
,
data:
{
container:
'body'
},
title:
_
(
'Subscribe to calendar'
)
do
=
link_to
safe_params
.
merge
(
calendar_url_options
),
class:
'btn has-tooltip'
,
data:
{
container:
'body'
},
title:
_
(
'Subscribe to calendar'
)
do
=
sprite_icon
(
'calendar'
)
=
sprite_icon
(
'calendar'
)
app/views/users/show.html.haml
View file @
892c47c4
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
title:
s_
(
'UserProfile|Report abuse'
),
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
title:
s_
(
'UserProfile|Report abuse'
),
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'exclamation-circle'
)
=
icon
(
'exclamation-circle'
)
-
if
can?
(
current_user
,
:read_user_profile
,
@user
)
-
if
can?
(
current_user
,
:read_user_profile
,
@user
)
=
link_to
user_path
(
@user
,
rss_url_options
),
class:
link_classes
+
'btn btn-default has-tooltip'
,
title:
s_
(
'UserProfile|Subscribe'
),
'aria-label'
:
'Subscribe'
do
=
link_to
user_path
(
@user
,
rss_url_options
),
class:
link_classes
+
'btn btn-
svg btn-
default has-tooltip'
,
title:
s_
(
'UserProfile|Subscribe'
),
'aria-label'
:
'Subscribe'
do
=
icon
(
'rss'
)
=
sprite_icon
(
'rss'
,
css_class:
'qa-rss-icon'
,
size:
16
)
-
if
current_user
&&
current_user
.
admin?
-
if
current_user
&&
current_user
.
admin?
=
link_to
[
:admin
,
@user
],
class:
link_classes
+
'btn btn-default'
,
title:
s_
(
'UserProfile|View user in admin area'
),
=
link_to
[
:admin
,
@user
],
class:
link_classes
+
'btn btn-default'
,
title:
s_
(
'UserProfile|View user in admin area'
),
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
...
...
changelogs/unreleased/225947-replace-fa-rss.yml
0 → 100644
View file @
892c47c4
---
title
:
Replace fa-rss with GitLab SVG icon
merge_request
:
36553
author
:
type
:
other
spec/support/shared_examples/features/rss_shared_examples.rb
View file @
892c47c4
...
@@ -9,8 +9,7 @@ end
...
@@ -9,8 +9,7 @@ end
RSpec
.
shared_examples
"it has an RSS button with current_user's feed token"
do
RSpec
.
shared_examples
"it has an RSS button with current_user's feed token"
do
it
"shows the RSS button with current_user's feed token"
do
it
"shows the RSS button with current_user's feed token"
do
expect
(
page
)
expect
(
page
)
.
to
have_css
(
"a:has(.fa-rss)[href*='feed_token=
#{
user
.
feed_token
}
']"
)
.
to
have_css
(
"a:has(.qa-rss-icon)[href*='feed_token=
#{
user
.
feed_token
}
']"
)
.
or
have_css
(
"a.js-rss-button[href*='feed_token=
#{
user
.
feed_token
}
']"
)
end
end
end
end
...
@@ -23,7 +22,6 @@ end
...
@@ -23,7 +22,6 @@ end
RSpec
.
shared_examples
"it has an RSS button without a feed token"
do
RSpec
.
shared_examples
"it has an RSS button without a feed token"
do
it
"shows the RSS button without a feed token"
do
it
"shows the RSS button without a feed token"
do
expect
(
page
)
expect
(
page
)
.
to
have_css
(
"a:has(.fa-rss):not([href*='feed_token'])"
)
.
to
have_css
(
"a:has(.qa-rss-icon):not([href*='feed_token'])"
)
.
or
have_css
(
"a.js-rss-button:not([href*='feed_token'])"
)
end
end
end
end
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