scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 90 forks source link

Implements a tree view index #92

Closed gazpachoking closed 8 years ago

gazpachoking commented 8 years ago

This could probably stand to be tweaked and cleaned up a bit still, but it seems to be working. There are a few changes here:

I'll clean it up if you have any comments, I'm sleepy now, and figured I'd put it up for review. Would be pretty easy to add an option to enable flat view, it's just a matter of returning items or _tree_view(items)

scragg0x commented 8 years ago

Thanks

gazpachoking commented 8 years ago

@scragg0x Here is how I was thinking flat view could still be supported. It seems like it might be useful still to get a full listing of all wiki pages at once, especially with the quick search by title. Also, a recently edited view becomes trivial, just do a flat index sorted by mtime.

https://github.com/gazpachoking/realms-wiki/commit/9f9401a7f74e1fcb637226370aa6807e7d10cdb1

gazpachoking commented 8 years ago

@scragg0x I was also wondering if we should give some more visual indication of files vs dirs in the index, not sure if the trailing '/' is noticeable enough. EDIT: Maybe an icon to indicate type at the beginning. Could even have its own column header, so you could sort by type.

scragg0x commented 8 years ago

Sure, I think font awesome is loaded.