Skip to content

Commit

Permalink
Comment out what breaks in diff_helper [#174]
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarrasch committed May 25, 2012
1 parent 5cb6961 commit 84d86bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/helpers/diff_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def render_diffs(diffs)
diffs.map do |file|
out = %Q{<a name="#{h(force_utf8(file.a_path))}"></a>}
out << "<h4>"
out << link_to(h(file.a_path), file_path(@repository, file.a_path, @commit.id))
url_to_file = "" # TODO: Fix, LabHasGroup might provide some helper
out << link_to(h(file.a_path), url_to_file)
out << "</h4>"
out << force_utf8(render_diff(file.diff))
out
Expand All @@ -43,7 +44,7 @@ def render_inline_diffs_with_stats(file_diffs, state = :closed)
out << %Q{<div class="header round-top-10 #{state == :closed ? 'closed' : 'open'}">}
out << %Q{<span class="title"><span class="icon"></span>#{h(file.a_path)}</span>}
out << %Q{<div class="diff-stats">}
out << render_compact_diff_stats(diff_renderer.stats)
# out << render_compact_diff_stats(diff_renderer.stats) # TODO
out << "</div></div>"
out << %Q{<div class="diff-hunks" #{state == :closed ? 'style="display:none"' : ''}>}

Expand Down

0 comments on commit 84d86bd

Please sign in to comment.