public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
Added method to link file path to blob

Signed-off-by: David A. Cuadrado <krawek@gmail.com>
David A. Cuadrado (author)
Mon Apr 28 22:25:43 -0700 2008
commit  eb32abcaba33b5213a71aff3ba3079821299a13f
tree    24e1a618b3459776e065d29d0c94255602347fe5
parent  edf16c0466ef89bdcc54f4c7ea69910b1fb49c9a
...
235
236
237
 
 
 
 
238
...
235
236
237
238
239
240
241
242
0
@@ -235,4 +235,8 @@ module ApplicationHelper
0
     text = repository.git.git.show({}, "master:#{possibilities.first}")
0
     markdown(text) rescue text.gsub("\n", "<br/>")
0
   end
0
+
0
+ def file_path(repository, filename, head = "master")
0
+ project_repository_blob_path(repository.project, repository, head, filename)
0
+ end
0
 end
...
25
26
27
28
 
29
30
31
...
25
26
27
 
28
29
30
31
0
@@ -25,7 +25,7 @@
0
   <%= render_diffmode_selector -%>
0
   <% @diffs.each do |file| -%>
0
     <a name="<%= h(file.a_path) -%>"></a>
0
- <h4><%=h(file.a_path) -%></h4>
0
+ <h4><%=link_to h(file.a_path), file_path(@repository, file.a_path) -%></h4>
0
     <%= render_diff(file.diff, @diffmode) -%>
0
   <% end -%>
0
 <% end -%>

Comments

    No one has commented yet.