diff.html.haml revision 827e98b08be3acd813ab859061f7e6318b7f8abd
= repository_nav repository, :"Ontology files"
%h3 Commit message
%pre= @message
%h3 Files changed by this commit
- @changed_files.each do |file|
%li
= link_to "#file-#{file[:path]}" do
- if file[:type] == :add
- elsif file[:type] == :delete
- elsif file[:type] == :change
= file[:path]
%h3 Changes
- @changed_files.each do |file|
- if file[:type] == :delete
= link_to file[:path], '#', 'data-toggle' => 'tooltip', 'data-original-title' => 'You cannot view a deleted file',
class: 'btn btn-default disabled', name: "file-#{file[:path]}"
- else
= link_to file[:path], fancy_repository_path(repository, path: file[:path], oid: @oid), class: 'btn btn-default', name: "file-#{file[:path]}"
- if file[:type] == :delete
File was deleted
- elsif file[:editable]
.diff-code
= file[:diff].html_safe
- elsif file[:mime_category] == 'image'
= image_tag fancy_repository_path(repository.path, oid: @oid, path: file[:path]), alt: file[:name]
- else
= link_to raw('<i class="icon-download-alt"></i> Download'), fancy_repository_path(repository.path, oid: @oid, path: file[:path]), class: 'btn btn-default'