public
Fork of sr/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/al3x/git-wiki.git
Search Repo:
cleaned _ directoried from page list and sorted page list
schacon (author)
Sun Apr 20 18:22:53 -0700 2008
commit  d294bebf8a4b9364727d472560fb8cf7bf553c47
tree    32713e34ee4584140b8290c95c3ea20ffa29bf3e
parent  22cf4df0a579c7591f5de47c1c7de26ec865744b
...
59
60
61
62
 
 
63
64
65
...
59
60
61
 
62
63
64
65
66
0
@@ -59,7 +59,8 @@ end
0
 # application paths (/a/ namespace)
0
 
0
 get '/a/list' do
0
- @pages = $repo.log.first.gtree.children.map { |name, blob| Page.new(name) } rescue []
0
+ pages = $repo.log.first.gtree.children
0
+ @pages = pages.select { |f,bl| f[0,1] != '_'}.sort.map { |name, blob| Page.new(name) } rescue []
0
   show(:list, 'Listing pages')
0
 end
0
 

Comments

    No one has commented yet.