_commit.html.haml revision 03dee28977299b4b40210d9b7842bf85c136ab7d
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi%li.commit
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi .row-fluid
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd .span7
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd .message= link_to get_message(commit)[:title], fancy_repository_path(@repository, oid: commit[:oid])
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd .time-author
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd by
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd = commit[:committer][:name]
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd = timestamp(commit[:committer][:time])
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd .span5
d05d0eb4ae6d2a5e513fc3bf2555ce33da416634nd .pull-right.short_oid
6ae232055d4d8a97267517c5e50074c2c819941and .btn-group.pull-right
c7811a175dc15d2172cc95f1c9791bbb6caf9b04nd - if @current_file && @repository.path_exists?(@path, commit[:oid])
6ae232055d4d8a97267517c5e50074c2c819941and = render partial: 'download_file', locals: { oid: commit[:oid], path: @path }
c7811a175dc15d2172cc95f1c9791bbb6caf9b04nd = link_to fancy_repository_path(@repository, oid: commit[:oid], path: @path), class: 'btn' do
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd %i.icon-file
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd Show
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd - elsif @current_file
4b3a8afbfcea8b265d179a122bf40dfedd1ce280takashi = link_to '#', class: 'btn disabled', 'data-toggle' => 'tooltip', 'data-original-title' => 'You cannot download a deleted file' do
4b3a8afbfcea8b265d179a122bf40dfedd1ce280takashi %i.icon-download
4b3a8afbfcea8b265d179a122bf40dfedd1ce280takashi Download
4b3a8afbfcea8b265d179a122bf40dfedd1ce280takashi = link_to '#', class: 'btn disabled', 'data-toggle' => 'tooltip', 'data-original-title' => 'You cannot view a deleted file' do
%i.icon-file
Show
- if @current_file
= link_to short_oid(commit), fancy_repository_path(@repository, oid: commit[:oid], action: :diff), class: 'btn'
.clearfix
.pull-right
= link_to fancy_repository_path(@repository, oid: commit[:oid]), class: 'btn btn-small btn-inverse' do
%i.icon-chevron-right
Browse Files
- else
= link_to short_oid(commit), fancy_repository_path(@repository, oid: commit[:oid], action: :diff), class: 'btn'
= link_to fancy_repository_path(@repository, oid: commit[:oid]), class: 'btn btn-inverse' do
%i.icon-chevron-right
Browse Files
.clearfix