Commit graph

22 commits

Author SHA1 Message Date
Phil Hughes
eab0ca8a0b
Fixes dashboard/projects empty state showing when viewing personal projects
This was caused by the `@projects` value being empty when the current
user does not have any personal projects.
2017-09-22 12:12:16 +01:00
Phil Hughes
9f32276454
Add context tabs to dashboard/projects
This allows users to quickly switch between all projects they have
access to & there own namespace projects. These tabs also keep
the same filtering/search options selected so the user can quickly
switch between the two different contexts.

Closes #29045
2017-09-22 12:12:15 +01:00
Tim Zallmann
37213cc395 Removed User Callout for Customer Experience 2017-09-20 20:00:32 +02:00
Yorick Peterse
f77fda6437
Improve checking if projects would be returned
In various places we check if the same relation would return projects.
This is done using "any?" which will run a COUNT query with any
LIMIT/OFFSET values still applied.

To work around all this we introduce 2 helper methods that take care of
doing the right thing. This leads to the produced queries being simpler
and fewer queries being executed.
2017-08-07 12:38:27 +02:00
Phil Hughes
9fcc28d428 moved declaration of breadcrumb_title into page_title method
`breadcrumb_title` is then overriden when needed
2017-07-12 09:04:22 +01:00
Phil Hughes
ec396fd93a New navigation breadcrumbs 2017-06-30 16:52:11 +00:00
Taurie Davis, Simon Knox and Adam Niedzielski
26dde5f55f Add Conversational Development Index page to admin panel 2017-06-01 17:37:21 +02:00
Phil Hughes
a2c859427c Fixed the show_user_callout method 2017-05-30 12:23:39 +01:00
Douwe Maan
7adebd5404 Make section connect with window border without extra padding 2017-05-25 15:34:27 -05:00
Douwe Maan
e45e540d1d Consistently display last push event widget 2017-05-25 15:21:30 -05:00
Phil Hughes
3eedb2aede Refactored the user callout class
Instead of the JS being in charge of the HTML, the HAML now handles it.
The HAML can then check the cookie & show it needed. It also allows the
HAML access to the paths so we don't have to pass that through.

Closes #29955
2017-03-24 16:36:23 +00: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
14873c837b Fixed incorrect empty state showing 2017-03-03 16:37:28 +02:00
Michael Kozono
a2670ee06b Show public RSS feeds to anonymous users 2017-02-28 12:50:57 -08:00
Jose Ivan Vargas
2f681138dc Modified the user_callout behaviour
Now it appends a template instead of relying in a partial
to show it.
2017-02-23 15:47:23 -06:00
Jose Ivan Vargas
bcab4bb5ef Changed the javascript class from using the global scope to exporting it via webpack
Also improved accesibility and change the id from user_callouts to a class
2017-02-23 15:47:23 -06:00
Jose Ivan Vargas
19a21107d7 Added CHANGELOG and corrected linter errors 2017-02-23 15:47:23 -06:00
Jose Ivan Vargas
103f5a116b Created unit tests, fixtures and integration tests
Also changed the user_callout haml to a partial and
added the corresponding SVG icon
2017-02-23 15:47:23 -06:00
Phil Hughes
e26f8bf7ba Dashboard projects blank state 2016-07-08 08:38:47 +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
Anton Baklanov
c5b6b31c84 Fixed invalid link on starred projects dashboard.
Fixes #3468
2015-12-03 21:06:15 +02: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
Renamed from app/views/dashboard/show.html.haml (Browse further)