diff.html.haml revision 2725ada6b2a776abaadd22b0006097eae9ba2b02
= 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.add?
- elsif file.delete?
- elsif file.change?
%h3 Changes
- @changed_files.each do |file|
- if file.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, ref: oid), class: 'btn btn-default', name: "file-#{file.path}"
- if file.delete?
File was deleted
- elsif file.editable?
.diff-code
- elsif file.mime_category == 'image'
- else
= link_to raw('<i class="icon-download-alt"></i> Download'), fancy_repository_path(repository.path, ref: oid, path: file.path), class: 'btn btn-default'