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
d80a59c7
Commit
d80a59c7
authored
Dec 04, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create helper for sort drowdown option names
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
d45b2530
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
24 deletions
+43
-24
app/helpers/sorting_helper.rb
app/helpers/sorting_helper.rb
+17
-0
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+4
-4
app/views/admin/users/index.html.haml
app/views/admin/users/index.html.haml
+3
-2
app/views/dashboard/projects.html.haml
app/views/dashboard/projects.html.haml
+5
-4
app/views/explore/groups/index.html.haml
app/views/explore/groups/index.html.haml
+4
-4
app/views/explore/projects/index.html.haml
app/views/explore/projects/index.html.haml
+4
-4
app/views/projects/branches/index.html.haml
app/views/projects/branches/index.html.haml
+2
-2
app/views/shared/_sort_dropdown.html.haml
app/views/shared/_sort_dropdown.html.haml
+4
-4
No files found.
app/helpers/sorting_helper.rb
0 → 100644
View file @
d80a59c7
module
SortingHelper
def
sort_title_oldest_updated
'Oldest updated'
end
def
sort_title_recently_updated
'Recently updated'
end
def
sort_title_oldest_created
'Recently updated'
end
def
sort_title_recently_created
'Recently updated'
end
end
app/views/admin/projects/index.html.haml
View file @
d80a59c7
...
...
@@ -56,13 +56,13 @@
=
link_to
admin_projects_path
(
sort:
nil
)
do
Name
=
link_to
admin_projects_path
(
sort:
'newest'
)
do
Newest
=
sort_title_recently_created
=
link_to
admin_projects_path
(
sort:
'oldest'
)
do
Oldest
=
sort_title_oldest_created
=
link_to
admin_projects_path
(
sort:
'recently_updated'
)
do
Recently
updated
=
sort_title_recently_
updated
=
link_to
admin_projects_path
(
sort:
'last_updated'
)
do
Last
updated
=
sort_title_oldest_
updated
=
link_to
admin_projects_path
(
sort:
'largest_repository'
)
do
Largest repository
=
link_to
'New Project'
,
new_project_path
,
class:
"btn btn-new"
...
...
app/views/admin/users/index.html.haml
View file @
d80a59c7
...
...
@@ -49,9 +49,10 @@
=
link_to
admin_users_path
(
sort:
'oldest_sign_in'
)
do
Oldest sign in
=
link_to
admin_users_path
(
sort:
'recently_created'
)
do
Recently
created
=
sort_title_recently_
created
=
link_to
admin_users_path
(
sort:
'late_created'
)
do
Late created
=
sort_title_oldest_created
=
link_to
'New User'
,
new_admin_user_path
,
class:
"btn btn-new"
%ul
.well-list
-
@users
.
each
do
|
user
|
...
...
app/views/dashboard/projects.html.haml
View file @
d80a59c7
...
...
@@ -14,13 +14,14 @@
=
link_to
projects_dashboard_filter_path
(
sort:
nil
)
do
Name
=
link_to
projects_dashboard_filter_path
(
sort:
'newest'
)
do
Newest
=
sort_title_recently_created
=
link_to
projects_dashboard_filter_path
(
sort:
'oldest'
)
do
Oldest
=
sort_title_oldest_created
=
link_to
projects_dashboard_filter_path
(
sort:
'recently_updated'
)
do
Recently
updated
=
sort_title_recently_
updated
=
link_to
projects_dashboard_filter_path
(
sort:
'last_updated'
)
do
Last updated
=
sort_title_oldest_updated
%p
.light
All projects you have access to are listed here. Public projects are not included here unless you are a member
%hr
...
...
app/views/explore/groups/index.html.haml
View file @
d80a59c7
...
...
@@ -20,13 +20,13 @@
=
link_to
explore_groups_path
(
sort:
nil
)
do
Name
=
link_to
explore_groups_path
(
sort:
'newest'
)
do
Newest
=
sort_title_recently_created
=
link_to
explore_groups_path
(
sort:
'oldest'
)
do
Oldest
=
sort_title_oldest_created
=
link_to
explore_groups_path
(
sort:
'recently_updated'
)
do
Recently
updated
=
sort_title_recently_
updated
=
link_to
explore_groups_path
(
sort:
'last_updated'
)
do
Last
updated
=
sort_title_oldest_
updated
%hr
...
...
app/views/explore/projects/index.html.haml
View file @
d80a59c7
...
...
@@ -20,13 +20,13 @@
=
link_to
explore_projects_path
(
sort:
nil
)
do
Name
=
link_to
explore_projects_path
(
sort:
'newest'
)
do
Newest
=
sort_title_recently_created
=
link_to
explore_projects_path
(
sort:
'oldest'
)
do
Oldest
=
sort_title_oldest_created
=
link_to
explore_projects_path
(
sort:
'recently_updated'
)
do
Recently
updated
=
sort_title_recently_
updated
=
link_to
explore_projects_path
(
sort:
'last_updated'
)
do
Last
updated
=
sort_title_oldest_
updated
%hr
.public-projects
...
...
app/views/projects/branches/index.html.haml
View file @
d80a59c7
...
...
@@ -20,9 +20,9 @@
=
link_to
project_branches_path
(
sort:
nil
)
do
Name
=
link_to
project_branches_path
(
sort:
'recently_updated'
)
do
Recently
updated
=
sort_title_recently_
updated
=
link_to
project_branches_path
(
sort:
'last_updated'
)
do
Last
updated
=
sort_title_oldest_
updated
%hr
-
unless
@branches
.
empty?
%ul
.bordered-list.top-list.all-branches
...
...
app/views/shared/_sort_dropdown.html.haml
View file @
d80a59c7
...
...
@@ -9,13 +9,13 @@
%ul
.dropdown-menu
%li
=
link_to
project_filter_path
(
sort:
'newest'
)
do
Newest
=
sort_title_recently_created
=
link_to
project_filter_path
(
sort:
'oldest'
)
do
Oldest
=
sort_title_oldest_created
=
link_to
project_filter_path
(
sort:
'recently_updated'
)
do
Recently
updated
=
sort_title_recently_
updated
=
link_to
project_filter_path
(
sort:
'last_updated'
)
do
Last
updated
=
sort_title_oldest_
updated
=
link_to
project_filter_path
(
sort:
'milestone_due_soon'
)
do
Milestone due soon
=
link_to
project_filter_path
(
sort:
'milestone_due_later'
)
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