Sean McGivern
97424ea544
Restrict starred projects to viewable ones
...
`User#starred_projects` doesn't perform any visibility checks. This has
a couple of problems:
1. It assumes a user can always view all of their starred projects in
perpetuity (project not changed to private, access revoked, etc.).
2. It assumes that we'll only ever allow a user to star a project they
can view. This is currently the case, but bugs happen.
Add `User#viewable_starred_projects` to filter the starred projects by
those the user either has explicit access to, or are public or
internal. Then use that in all places where we list the user's starred
projects.
2016-05-10 18:13:52 +01:00
Robert Speicher
085538c2bd
Use the configured Kaminari "per page" default
2016-03-19 17:37:54 -04:00
Josh Frye
449954ecc2
Allow filtered dashboard/explore results to be paged. Fixes #14104
2016-03-09 21:03:28 -05:00
Dmitriy Zaporozhets
acb211215c
Add option to show archived projects on dahsboard
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-04 19:25:28 +01:00
Dmitriy Zaporozhets
afe9a07a9e
Revert "Revert "Sort starred projects on dashboard based on last activity by default""
...
This reverts commit 617bb1096d
.
2016-03-03 16:00:09 +01:00
Dmitriy Zaporozhets
617bb1096d
Revert "Sort starred projects on dashboard based on last activity by default"
...
This reverts commit 70d6455284
.
2016-03-03 15:58:00 +01:00
Dmitriy Zaporozhets
70d6455284
Sort starred projects on dashboard based on last activity by default
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-03 15:56:29 +01:00
Rémy Coutable
a3f0a176ff
Don't show "Welcome to GitLab" when the search didn't return any projects
2016-03-02 11:41:35 +01:00
Josh Frye
120dca0f35
MR feedback
2016-02-09 10:10:41 -05:00
Josh Frye
8b4e9720d9
Extract events rendering to own action.
2016-02-09 10:10:41 -05:00
Josh Frye
1a9630acc5
Fix double paging
2016-02-05 10:45:22 -05:00
Josh Frye
2ad094132d
Various filter fixes
2016-02-04 13:03:41 -05:00
Josh Frye
7522ac0b3c
Paginate + ajax filter dashboard projects
2016-02-04 11:40:19 -05:00
Josh Frye
87b61db7ed
Page project list on dashboard
2016-02-04 11:40:19 -05:00
Dmitriy Zaporozhets
73bd729ecc
Add sort dropdown to dashboard projects page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-02-03 20:13:26 +01:00
Yorick Peterse
128a6411d2
Don't pluck project IDs for events
...
By instead using a sub-query we save ourselves the overhead of loading
any data into memory only to pass it on to another query.
2016-01-26 10:51:53 +01:00
Drew Blessing
788a3f9b94
Add last push widget to starred projects dashboard
2015-10-01 15:17:32 -05:00
Douwe Maan
5d785457db
Clean up overlap between dashboard and explore.
...
- Split up SnippetsController into separate dashboard and explore sections.
- Use consistent page titles, header titles and sidebars between dashboard and explore sections when signed in or not.
2015-09-08 14:49:20 +01:00
Douwe Maan
26ad250989
Add a page title to every page.
2015-04-30 19:12:15 +02:00
Jeroen van Baarsen
5a4ebfb47a
Fixed the Rails/ActionFilter cop
...
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-04-20 15:39:37 +02:00
Dmitriy Zaporozhets
d36ee3190a
Add starred projects page to dashboard
2015-03-09 14:12:03 -07:00