public
Fork of al3x/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/jnewland/git-wiki.git
Search Repo:
ui for raw copy of files
jnewland (author)
Wed May 14 20:41:05 -0700 2008
commit  71e0456d1b35059bd2c909d2587f839c8564a4e4
tree    65efc0919c94200457d563e899d7cb528e5ced3c
parent  dcfaff44a5ebc5d369c154cd809d57ecc8c97899
...
57
58
59
 
 
 
 
 
60
61
62
...
57
58
59
60
61
62
63
64
65
66
67
0
@@ -57,6 +57,11 @@
0
   show :show, "#{@page.name} (version #{params[:rev]})"
0
 end
0
 
0
+get '/h/:page/:rev.txt' do
0
+ @page = Page.new(params[:page], params[:rev])
0
+ send_data @page.raw_body, :type => 'text/plain', :disposition => 'inline'
0
+end
0
+
0
 get '/d/:page/:rev' do
0
   @page = Page.new(params[:page])
0
   show :delta, "Diff of #{@page.name}"
...
25
26
27
 
 
 
 
 
 
28
29
30
...
25
26
27
28
29
30
31
32
33
34
35
36
0
@@ -25,6 +25,12 @@
0
     <a href="/e/<%= @page.name %>" class="nav_link">edit</a> &bull;
0
   <% end %>
0
   
0
+ <% if params[:rev] %>
0
+ <a href="/h/<%= @page.name %>/<%= @page.commit %>.txt" class="nav_link">raw</a> &bull;
0
+ <% else %>
0
+ <a href="<%= @page.name %>.txt" class="nav_link">raw</a> &bull;
0
+ <% end %>
0
+
0
   <a href="/h/<%= @page.name %>" class="nav_link">history</a>
0
   
0
   <% if @page.previous_commit %>

Comments

    No one has commented yet.