Load the expensive diffs separately so it's cacheable
authorMarius Mathiesen <marius@gitorious.org>
Tue, 16 Aug 2011 13:04:20 +0000 (15:04 +0200)
committerMarius Mathiesen <marius@gitorious.org>
Tue, 16 Aug 2011 13:04:20 +0000 (15:04 +0200)
commita2264f6408bf2d3b1e6a45dcffd887ce169e5d1a
tree7233e48a7a1728d3408f71fea7d0d819e822ab59
parent90e689f4214a7f130e7523581b95337818ee61d2
Load the expensive diffs separately so it's cacheable

Normal requests are served an empty page, actual diffs are loaded using XHR.
This way the actual diff data can be cached.
app/controllers/commit_diffs_controller.rb
app/views/commit_diffs/_compare_diffs.html.erb [new file with mode: 0644]
app/views/commit_diffs/compare.html.erb
test/functional/commit_diffs_controller_test.rb