Home directory divider

Hi All,
How is it possible to graphically divide the “Home Directory” entry with other entries of the “Files” dropdown menu as shown below?
When adding additional entries to that dropdown, “Home Directory” won’t be separated.


OodFilesApp.candidate_favorite_paths.tap do |paths|
  # add project space directories
  projects = User.new.groups.map(&:name).grep(/^P./)
  paths.concat projects.map { |p| Pathname.new("/fs/project/#{p}")  }

  # add scratch space directories
  paths << Pathname.new("/work")
  paths << Pathname.new("/scratch")

Thanks and best regards

First you want to move that file ood.rb to /etc/ood/config/apps/dashboard/initializers/ood.rb. This will persist it through upgrades (what’s in /var/www/ood is overwritten).

Secondly, it’s not immediately apparent if this feature still exists. This is what it looks like for me too. Interactive apps have separator and titles, based off of subcategory. I don’t know how to inject that into the files app off hand because it’s considered 1 app, there’s nothing to separate it from.

That said, I think you’re right in that’s a cleaner look.

Right now there isn’t a way to add the line to separate home directory from the others. That originally existed when we had hard-coded links for the home directory and other hard coded links, which made the code inflexible and more difficult to maintain. We can add that as a feature request to track in GitHub though.

I just created the corresponding github ticket for this request.

1 Like