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
c4d5e9c2
Commit
c4d5e9c2
authored
Mar 31, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
b2442147
c30fc3d8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
25 deletions
+35
-25
ee/app/helpers/ee/sorting_helper.rb
ee/app/helpers/ee/sorting_helper.rb
+1
-1
ee/app/views/shared/epic/_search_bar.html.haml
ee/app/views/shared/epic/_search_bar.html.haml
+3
-3
ee/app/views/shared/epic/_sort_dropdown.html.haml
ee/app/views/shared/epic/_sort_dropdown.html.haml
+14
-11
ee/app/views/shared/epic/_state_dropdown.html.haml
ee/app/views/shared/epic/_state_dropdown.html.haml
+11
-10
ee/changelogs/unreleased/231131-apply-gitlab-ui-button-styles-to-buttons-in-ee-app-views-shared.yml
...ab-ui-button-styles-to-buttons-in-ee-app-views-shared.yml
+6
-0
No files found.
ee/app/helpers/ee/sorting_helper.rb
View file @
c4d5e9c2
...
...
@@ -72,7 +72,7 @@ module EE
link_to
sprite_icon
(
sort_icon
),
page_filter_path
(
sort:
opposite_sorting_param
),
class:
"btn
btn-default
has-tooltip qa-reverse-sort btn-sort-direction"
,
class:
"btn
gl-button btn-default btn-icon
has-tooltip qa-reverse-sort btn-sort-direction"
,
title:
_
(
"Sort direction"
)
end
end
...
...
ee/app/views/shared/epic/_search_bar.html.haml
View file @
c4d5e9c2
...
...
@@ -11,13 +11,13 @@
.epics-details-filters.filtered-search-block.d-flex.flex-column.flex-md-row.row-content-block.second-block
-
if
show_roadmap_presets
.btn-group.btn-group-toggle.gl-mr-3.js-btn-roadmap-presets
{
data:
{
toggle:
'buttons'
}
}
%label
.btn.
btn-default
.btn-roadmap-preset
{
class:
(
"active"
if
is_quarters
)
}
%label
.btn.
gl-button.btn-secondary
.btn-roadmap-preset
{
class:
(
"active"
if
is_quarters
)
}
%input
{
type:
'radio'
,
name:
'presetType'
,
autocomplete:
'off'
,
checked:
(
"checked"
if
is_quarters
),
value:
'QUARTERS'
}
=
_
(
'Quarters'
)
%label
.btn.
btn-default
.btn-roadmap-preset
{
class:
(
"active"
if
is_months
)
}
%label
.btn.
gl-button.btn-secondary
.btn-roadmap-preset
{
class:
(
"active"
if
is_months
)
}
%input
{
type:
'radio'
,
name:
'presetType'
,
autocomplete:
'off'
,
checked:
(
"checked"
if
is_months
),
value:
'MONTHS'
}
=
_
(
'Months'
)
%label
.btn.
btn-default
.btn-roadmap-preset
{
class:
(
"active"
if
is_weeks
)
}
%label
.btn.
gl-button.btn-secondary
.btn-roadmap-preset
{
class:
(
"active"
if
is_weeks
)
}
%input
{
type:
'radio'
,
name:
'presetType'
,
autocomplete:
'off'
,
checked:
(
"checked"
if
is_weeks
),
value:
'WEEKS'
}
=
_
(
'Weeks'
)
.filter-dropdown-container.gl-mr-3
...
...
ee/app/views/shared/epic/_sort_dropdown.html.haml
View file @
c4d5e9c2
-
hide_extra_sort_options
=
local_assigns
.
fetch
(
:hide_extra_sort_options
,
false
)
-
sorted_by
=
epics_sort_options_hash
[
@sort
]
.dropdown.gl-ml-3
.dropdown.gl-
new-dropdown.gl-
ml-3
.btn-group.d-flex.d-md-inline-flex
%button
.btn.dropdown-toggle.epics-sort-btn
{
type:
'button'
,
data:
{
toggle:
'dropdown'
}
}
=
sorted_by
=
sprite_icon
(
'chevron-down'
,
css_class:
'gl-text-gray-200'
)
%ul
.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable.dropdown-menu-sort
%li
-
if
!
hide_extra_sort_options
=
sortable_item
(
sort_title_created_date
,
page_filter_path
(
sort:
sort_value_recently_created
),
sorted_by
)
=
sortable_item
(
sort_title_recently_updated
,
page_filter_path
(
sort:
sort_value_recently_updated
),
sorted_by
)
=
sortable_item
(
sort_title_start_date
,
page_filter_path
(
sort:
sort_value_start_date_soon
),
sorted_by
)
=
sortable_item
(
sort_title_end_date
,
page_filter_path
(
sort:
sort_value_end_date
),
sorted_by
)
.btn-group
%button
.btn.gl-button.btn-default.dropdown-toggle.epics-sort-btn
{
type:
'button'
,
data:
{
toggle:
'dropdown'
}
}
%span
.gl-new-dropdown-button-text
=
sorted_by
=
sprite_icon
(
'chevron-down'
,
css_class:
'gl-button-icon dropdown-chevron gl-icon s16'
)
%ul
.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable.dropdown-menu-sort
.gl-new-dropdown-inner
%li
-
if
!
hide_extra_sort_options
=
sortable_item
(
sort_title_created_date
,
page_filter_path
(
sort:
sort_value_recently_created
),
sorted_by
)
=
sortable_item
(
sort_title_recently_updated
,
page_filter_path
(
sort:
sort_value_recently_updated
),
sorted_by
)
=
sortable_item
(
sort_title_start_date
,
page_filter_path
(
sort:
sort_value_start_date_soon
),
sorted_by
)
=
sortable_item
(
sort_title_end_date
,
page_filter_path
(
sort:
sort_value_end_date
),
sorted_by
)
=
sort_order_button
(
@sort
)
ee/app/views/shared/epic/_state_dropdown.html.haml
View file @
c4d5e9c2
.dropdown.inline.dropdown-epics-state
%button
.dropdown-toggle
{
type:
'button'
,
data:
{
toggle:
'dropdown'
}
}
.dropdown.
gl-new-dropdown.
inline.dropdown-epics-state
%button
.
btn.gl-button.btn-default.
dropdown-toggle
{
type:
'button'
,
data:
{
toggle:
'dropdown'
}
}
=
epic_state_title
(
@epics_state
)
=
sprite_icon
(
'chevron-down'
,
css_class:
'gl-
text-gray-200'
)
=
sprite_icon
(
'chevron-down'
,
css_class:
'gl-
button-icon gl-icon dropdown-chevron'
)
%ul
.dropdown-menu.dropdown-menu-selectable
%li
=
epic_state_dropdown_link
(
'all'
,
@epics_state
)
.dropdown-divider
%li
=
epic_state_dropdown_link
(
'opened'
,
@epics_state
)
%li
=
epic_state_dropdown_link
(
'closed'
,
@epics_state
)
.gl-new-dropdown-inner
%li
=
epic_state_dropdown_link
(
'all'
,
@epics_state
)
.dropdown-divider
%li
=
epic_state_dropdown_link
(
'opened'
,
@epics_state
)
%li
=
epic_state_dropdown_link
(
'closed'
,
@epics_state
)
ee/changelogs/unreleased/231131-apply-gitlab-ui-button-styles-to-buttons-in-ee-app-views-shared.yml
0 → 100644
View file @
c4d5e9c2
---
title
:
Apply GitLab UI button and dropdown styles to buttons in ee/app/views/shared/epic
directory
merge_request
:
56729
author
:
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