Commit Graph

169 Commits

Author SHA1 Message Date
Paul Baumgart 5fcb5d971a Add support for RFC 1738 special characters in page names.
Escape all links and redirects to support this. Some changes to app.rb
necessary for correct routing by Sinatra.
2010-09-01 22:02:19 -07:00
rick e0d234c255 use grit to get the file's mime type, as suggested.
http://github.com/github/gollum/commit/6de9ddfd3f79a9cb320aab3c43b8e0a912107b2e#commitcomment-137656
2010-08-30 18:25:48 -07:00
rick bf37f44970 pull default name/email for commits from wiki repo's git config 2010-08-30 18:11:03 -07:00
rick 847e6c00a4 Merge branch 'master' of github.com:github/gollum 2010-08-30 18:04:36 -07:00
Jon Frisby 6de9ddfd3f Make an attempt at setting a proper mime-type when showing a file.
Prevents things like having the browser show raw binary data when you have a PDF in your repo.
2010-08-31 09:04:27 +08:00
Jon Frisby 1f8a67598a Use Grit to determine committer instead of executing a sub-shell and calling the git CLI. 2010-08-31 09:04:27 +08:00
rick ba18cbebe8 more tree_map tests 2010-08-30 17:56:03 -07:00
rick 646c8e21b2 Add Wiki#size to efficiently count pages without loading them. 2010-08-30 17:52:20 -07:00
rick 6dab4f7fe6 Wiki#pages uses the treemap 2010-08-30 17:45:32 -07:00
rick 7e2b1fdbc6 Wiki#tree_map_for returns an array of BlobEntry instances 2010-08-30 17:31:19 -07:00
rick 6f077702e1 Page#find_page_in_this_tree is redundant 2010-08-30 17:04:30 -07:00
Tom Preston-Werner 94f05b0796 Update working dir (if present) when edited via the API. Closes #6. 2010-08-30 16:37:59 -07:00
rick 0500c7e10c cache the ref => sha lookup 2010-08-24 12:39:26 -07:00
rick 3eeed9ba1e update Wiki#find_page_in_tree to use cached tree map 2010-08-24 12:15:11 -07:00
rick 292f6ec8dc update Wiki#find_page_in_this_tree to use the new cached tree map. 2010-08-24 11:47:20 -07:00
rick 068a902a00 don't modify path names in cached wiki treemaps 2010-08-24 11:47:02 -07:00
rick d606511fdf use cached tree map when finding files 2010-08-24 11:29:39 -07:00
rick cc3d9529cc add a cached Wiki#tree_map_for method 2010-08-24 11:24:49 -07:00
rick 99995f7364 convert $path global to a gollum_path sinatra setting 2010-08-23 16:16:39 -07:00
Tom Preston-Werner dae2e0c79c Remove obsolete tree map methods. 2010-08-19 17:40:05 -07:00
Tom Preston-Werner 9b32d3bfb1 Update Wiki#delete_page to use Index#read_tree awesomes. 2010-08-19 17:37:49 -07:00
Tom Preston-Werner b1fc173a3f Update Wiki#update_page to use Index#read_tree goodness. 2010-08-19 17:35:18 -07:00
Tom Preston-Werner 6a53e3d037 Clean up some whitespace. 2010-08-19 15:43:26 -07:00
Tom Preston-Werner 15879a5a88 Use Index#read_tree for Wiki#write_page instead of rebuilding the entire index. 2010-08-19 15:42:36 -07:00
rick 28a29f49f2 Gollum::Wiki#add_to_tree_map updates pages if a file with the matching name + extension exists 2010-08-16 17:37:53 -07:00
Tom Preston-Werner acdb04ba4e Handle duplicate page error in frontend. Closes #10. 2010-08-16 16:54:01 -07:00
rick dd30a7bdc2 fix markup on framed absolute image urls 2010-08-16 15:49:47 -07:00
rick c7e172f5ca can't access trees as files 2010-08-16 14:57:39 -07:00
rick c69a5f80dd prevent Gollum::Wiki instances from creating new pages that overwrite pages with the same name. 2010-08-16 07:56:46 -07:00
rick ee04dd84aa normalize commit hashes so they at least show 'anonymous' if no git user is set. 2010-08-16 07:36:32 -07:00
Chris Hoffman 4e3b4e23da Ruby 1.9 compatibility
* Adds current directory to load path for tests because 1.9 does not
* Aliases String#lines to String#to_a under 1.8 to match 1.9 behavior
* Sets encoding magic comment in test file with characters outside ascii
* Require 'ostruct' explicitly

This depends on a patch to Grit to have full functionality through the
whole stack.
2010-08-14 21:37:00 +00:00
rick edcfdfa402 return nil for bad file version 2010-08-13 16:11:37 -07:00
Tom Preston-Werner 2a905cedc9 Release 1.0.1 2010-08-12 16:04:51 -07:00
Tom Preston-Werner 541b58af8f Release 1.0.0 2010-08-12 12:56:58 -07:00
rick dfb453c7f9 dont depend on order of the clicked versions 2010-08-12 11:05:43 -07:00
rick f8594b06a6 inaccessibility 2010-08-12 09:52:03 -07:00
rick b4a913ecf3 return found pages to their rightful owner
see https://github.com/github/gollum/commit/39117ae44a5c3d0aaf934e6813ad15813ab49b4c
2010-08-12 09:45:06 -07:00
rick 45de814154 pagination on the history page 2010-08-12 09:38:28 -07:00
rick b118436fa9 accessibility 2010-08-12 09:10:02 -07:00
rick 6649dd4812 bookmarkable compare urls 2010-08-12 09:09:33 -07:00
Tom Preston-Werner ca8ab2f374 Strip dashes from page name shown on creation page. 2010-08-05 18:26:21 -06:00
Tom Preston-Werner 10d2f53d40 Polish up page titles. 2010-08-05 18:00:55 -06:00
Tom Preston-Werner af4c2f8002 Remove old, redundant stylesheet. 2010-08-05 16:24:21 -06:00
Tom Preston-Werner 39117ae44a Set version on _Footer files. 2010-08-05 12:33:13 -06:00
Tom Preston-Werner 9ae62d8029 Add nowrap to date on history page. 2010-08-05 11:28:14 -07:00
rick 8a189d4d53 Gollum::Page#versions sets :follow to false by default, and skips pagination options. 2010-08-05 11:28:00 -07:00
rick 2b1120756b marinate New Page form in edit bar spices 2010-08-04 16:41:24 -07:00
rick 6d2ec96d5c add rename support to the frontend 2010-08-04 16:38:24 -07:00
Tom Preston-Werner 500b697ecb Javascript goodies for History page. 2010-08-04 16:59:19 -06:00
rick 1e96ce6e1e Track a page's versions across renames 2010-08-04 15:57:37 -07:00