_commit.html.haml revision ccb3ac32fa3dfc64262b8add551e99d5b23eb937
%li.commit
.col-md-9
%span.message= link_to get_message(commit)[:title], fancy_repository_path(repository, ref: commit.oid, action: :diff)
%span.time-author
[
%span.author= commit.author[:name]
authored
%span.time= timestamp(commit.author[:time])
]
.col-md-3
.pull-right
.btn-group
- if current_file && repository.path_exists?(path, commit.oid)
= link_to fancy_repository_path(repository, ref: commit.oid, path: path), class: 'btn btn-xs btn-default', 'data-toggle' => 'tooltip', 'data-original-title' => 'View file contents' do
%i.fa.fa-file
Show file
- elsif current_file
= link_to '#', class: 'btn btn-xs btn-default disabled', 'data-toggle' => 'tooltip', 'data-original-title' => 'You cannot view a deleted file' do
%i.fa.fa-file
Show file
- if current_file
= link_to short_oid(commit), fancy_repository_path(repository, ref: commit.oid, action: :diff), class: 'btn btn-xs btn-default oid-btn'
= link_to fancy_repository_path(repository, ref: commit.oid), class: 'btn btn-xs btn-primary' do
%i.fa.fa-chevron-right
Browse Files
- else
= link_to short_oid(commit), fancy_repository_path(repository, ref: commit.oid, action: :diff), class: 'btn btn-xs btn-default oid-btn'
= link_to fancy_repository_path(repository, ref: commit.oid), class: 'btn btn-xs btn-primary' do
%i.fa.fa-chevron-right
Browse Files
.clearfix