gitlab-org--gitlab-foss/app/views
Dmitriy Zaporozhets 4666515538 Merge branch 'flatten-dirs' into 'master'
Flatten the directory hierarchy while there is only one directory descendant

In some languages, especially java, the directory structure reflects the package structure.This means that using the file tree browser to reach the directories that matter you have to click a lot of directories containing only another subdirectory.

This merge request tries to enhance this by showing and providing the link to the first directory that doesn't contain only one directory.

See also [this feature request](http://feedback.gitlab.com/forums/176466-general/suggestions/6236769-jump-forward-to-the-first-folder-that-has-more-tha)

This is very similar to what [GitHub does](https://github.com/blog/1877-folder-jumping), but I don't think graying out the empty directories is really necessary.

Screenshots: [Before](https://gitlab.com/uploads/marmis85/gitlab-ce/b683a0000f/before.png) - [After](https://gitlab.com/uploads/marmis85/gitlab-ce/a23725a1c1/after.png)

I'm actually very new at ruby, rails, haml, and almost everything involved in Gitlab's development...
From what I could understand, when we render each directory item in the list we only have the data structure representing the item but not his descendants.
To iterate through the hierarchy I call Gitlab::Git:Tree.where() but I'm not sure if this is the most efficient way.

I also considered making every directory a clickable link, but I tried that and in the end it wasn't very useful and reduced the click target for the most useful directory.

See merge request !275
2015-01-11 04:42:28 +00:00
..
admin Finally fix stuff related to dynamic config 2015-01-08 14:26:43 -08:00
dashboard Restyle and refactor dashboard projects page filtering 2015-01-06 13:09:56 -08:00
devise Init ApplicationSettings resource with defaults from config file 2015-01-08 00:22:50 -08:00
doorkeeper Rework oauth2 feature 2014-12-25 18:35:04 +02:00
errors
events
explore Create helper for sort drowdown option names 2014-12-04 12:10:38 +02:00
groups Restyle and refactor milestones filter 2015-01-06 12:32:04 -08:00
help
kaminari/gitlab
layouts Improve application settings and write tests 2015-01-08 09:53:35 -08:00
notify Add commit dates to repository-push email tempalte 2014-12-11 14:18:18 +02:00
profiles Share the key table between admin and profile resources. 2014-12-30 11:01:30 +01:00
projects Merge branch 'flatten-dirs' into 'master' 2015-01-11 04:42:28 +00:00
search Respect current controller scope when using search from project area 2014-12-02 22:38:45 +02:00
shared Restyle and refactor milestones filter 2015-01-06 12:32:04 -08:00
snippets
users Fix xmlns:media namespacing for atom feeds 2014-12-31 15:05:38 -05:00
votes