Commit 57d1826d2a06f1cb7aaa0b9c151bc930b1087a24
- Date: Mon Feb 18 22:05:18 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 57d1826d2a06f1cb7aaa0b9c151bc930b1087a24
- Tree SHA1: ecd301df7c019d3a443986152895654bd5bf6adb
- .gitignore 3 -++
- app/views/browse/blob.html.erb 4 -+++
- config/environments/production.rb 4 ++++
Commit diff
- Diff rendering mode:
- inline
- side by side
.gitignore
|   | ||
| 1 | 1 | */.DS_Store |
| 2 | 2 | .DS_Store |
| 3 | ||
| 3 | coverage/* | |
| 4 | public/cache/* | |
| toggle raw diff | ||
app/views/browse/blob.html.erb
|   | ||
| 15 | 15 | <small>(<%= link_to "raw blob data", raw_blob_path(@blob.sha, current_path) -%>)</small> |
| 16 | 16 | </h1> |
| 17 | 17 | |
| 18 | ||
| 18 | <% cache do -%> | |
| 19 | <%= render_highlighted(@blob.contents, current_path.last || "") -%> | |
| 20 | <% end -%> | |
| toggle raw diff | ||
config/environments/production.rb
|   | ||
| 14 | 14 | config.action_controller.consider_all_requests_local = false |
| 15 | 15 | config.action_controller.perform_caching = true |
| 16 | 16 | |
| 17 | cache_dir = File.expand_path(File.join(RAILS_ROOT, 'public', 'cache')) | |
| 18 | config.action_controller.page_cache_directory = cache_dir | |
| 19 | config.action_controller.fragment_cache_store = :file_store, File.join(cache_dir, "fragments") | |
| 20 | ||
| 17 | 21 | # Enable serving of images, stylesheets, and javascripts from an asset server |
| 18 | 22 | # config.action_controller.asset_host = "http://assets.example.com" |
| 19 | 23 | |
| toggle raw diff | ||
