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
a59afafa
Commit
a59afafa
authored
Apr 06, 2022
by
Sam Figueroa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transition sorting drop down to Pajamas style
- refs:
https://gitlab.com/gitlab-org/gitlab/-/issues/263171
parent
c88f43cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
app/views/projects/forks/index.html.haml
app/views/projects/forks/index.html.haml
+4
-9
No files found.
app/views/projects/forks/index.html.haml
View file @
a59afafa
-
sort_value
=
@sort
||
sort_value_recently_created
-
sort_title
=
forks_sort_options_hash
[
sort_value
]
-
excluded_filters
=
[
:state
,
:scope
,
:label_name
,
:milestone_id
,
:assignee_id
,
:author_id
]
-
created_at
=
{
value:
sort_value_created_date
,
text:
sort_title_created_date
,
href:
page_filter_path
(
sort:
sort_value_recently_created
,
without:
excluded_filters
)
}
-
activity
=
{
value:
sort_value_latest_activity
,
text:
sort_title_latest_activity
,
href:
page_filter_path
(
sort:
sort_value_latest_activity
,
without:
excluded_filters
)
}
.top-area
.nav-text
...
...
@@ -14,14 +16,7 @@
.dropdown.gl-display-inline.gl-md-ml-3.issue-sort-dropdown.gl-mt-3.gl-md-mt-0
.btn-group
{
role:
'group'
}
.btn-group
{
role:
'group'
}
%button
.dropdown-menu-toggle
{
type:
'button'
,
data:
{
toggle:
'dropdown'
,
display:
'static'
},
class:
'gl-button btn btn-default'
}
=
sort_title
=
sprite_icon
(
'chevron-down'
,
css_class:
"dropdown-menu-toggle-icon gl-top-3"
)
%ul
.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable.dropdown-menu-sort
%li
-
excluded_filters
=
[
:state
,
:scope
,
:label_name
,
:milestone_id
,
:assignee_id
,
:author_id
]
=
sortable_item
(
sort_title_created_date
,
page_filter_path
(
sort:
sort_value_recently_created
,
without:
excluded_filters
),
sort_title
)
=
sortable_item
(
sort_title_latest_activity
,
page_filter_path
(
sort:
sort_value_latest_activity
,
without:
excluded_filters
),
sort_title
)
=
gl_redirect_listbox_tag
[
created_at
,
activity
],
@sort
=
forks_sort_direction_button
(
sort_value
)
-
if
current_user
&&
can?
(
current_user
,
:fork_project
,
@project
)
...
...
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