Commit Graph

19 Commits

Author SHA1 Message Date
Ezekiel Kigbo b736a9f000
Minor review fixes
Externalize strings

Simplify locals passed through views

Ensure we can still filter when logged out

Cleanup conditional rendering for explore filters
2019-05-06 16:42:43 +01:00
Ezekiel Kigbo aebf22f639
Ensure we dont apply changes to admin/projects
The changes introduced for the project filter bar should
not apply to the admin projects screen.

Remove "Owned by me", "Owned by anyone" options

Update the dropdown option Last created -> Created date.
Introduces fixes for spacing and minor styling across breakpoints.
2019-05-06 16:41:47 +01:00
Ezekiel Kigbo 6daec21a16
Updated layout for various breakpoints
Updated translations

Adds sort direction dropdown

Allows the project list sorting direction to be changed,
available options can be sorted ascending or descending.
Implements the changes from the UX review.
2019-05-06 16:41:46 +01:00
Clement Ho a1beb409cd Fix dropdowns 2018-04-17 12:18:41 -05:00
Kushal Pandya de55396134 Groups tree enhancements for Groups Dashboard and Group Homepage 2017-10-04 22:49:42 +02:00
Mehdi Lahmam 55f4ddad2b Add an option to list only archived projects
Closes #35994
2017-08-24 10:11:07 +02:00
Jacopo b996a82ff4 ProjectsFinder should handle more options
Extended ProjectFinder in order to handle the following options:
 - current_user - which user use
 - project_ids_relation: int[] - project ids to use
 - params:
   -  trending: boolean
   -  non_public: boolean
   -  starred: boolean
   -  sort: string
   -  visibility_level: int
   -  tags: string[]
   -  personal: boolean
   -  search: string
   -  non_archived: boolean

GroupProjectsFinder now inherits from ProjectsFinder.
Changed the code in order to use the new available options.
2017-04-06 07:11:37 +02:00
Dmitriy Zaporozhets 5bb6a85b90
Refactor projects filtering by name
Reuse same search form and behavior for dashboard#projects, group#projects
and admin#projects. Repsect all other options like sorting, personal
filter when search projects by name. Create FilterableList JS class to
handle identical behaviour of projects and groups lists.

This change also makes filtering and sorting availabe on explore#projects
and explore#groups no matter if you are logged in or not.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-03-03 18:39:30 +02:00
Phil Hughes ed1f110499 Fixes filtering by name reseting archive filter
Previously the search form just wasn't including any params that had previously been set, so when you filtered by name, it would reset all the params & therefore ignoring the archived param

Closes #28007
2017-03-03 16:37:28 +02:00
Dmitriy Zaporozhets 059d1ae4c8 Merge branch 'dz-create-nested-groups-via-ui' into 'master'
Allow creating nested group via UI

See merge request !8786
2017-02-09 08:32:40 +00:00
Dmitriy Zaporozhets f39dbf3d3d
Allow creating nested group via UI
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-02-07 15:37:36 +02:00
Nur Rony a54a734f70
fixes mobile view 2017-01-31 17:40:37 +06:00
Alfredo Sumaran 338072cc4b Layout for Users Groups and Projects on admin area 2016-07-07 13:25:58 -05:00
Alfredo Sumaran 41cee8c38e Do not display filters if user if there's no current_user 2016-04-21 16:03:14 -05:00
Alfredo Sumaran ded5efad1f Allow filtering by Owned projects 2016-04-18 17:32:47 -05:00
Phil Hughes 7a311c2349 Updated project list dropdown to use dropdown classes 2016-03-05 11:51:56 +00:00
Dmitriy Zaporozhets 62067c5b0f
Align projects sort checkbox
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-04 20:16:13 +01:00
Dmitriy Zaporozhets 38984a59ac Show active sorting method for projects list
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-04 19:27:02 +01:00
Dmitriy Zaporozhets bebf34aa47 Make projects sort dropdown shared so it can be reused for other pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-04 19:26:10 +01:00
Renamed from app/views/explore/projects/_dropdown.html.haml (Browse further)