rosa-build/app/views/projects/git/commits/_commits_small.html.haml

23 lines
984 B
Plaintext
Raw Normal View History

2012-09-27 17:59:48 +01:00
%div.commits_activity
%table
%tbody
- commits.each do |commit|
- item_no = commit.id
- GitPresenters::CommitAsMessagePresenter.present(commit, :project => @project) do |presenter|
2012-09-27 17:59:48 +01:00
%tr
%td
%img{:height => 16, :alt => "avatar", :src => presenter.image}
%td.date
= presenter.date
%td.name
= presenter.header
%td.subject
- if presenter.caption?
= presenter.caption
- if presenter.expandable? and presenter.content?
%span.data-expander.collapsed{:id => "expand#{item_no}"}  
- if presenter.content?
.fulltext{:class => "#{presenter.expandable? ? "hidden" : ''} #{presenter.caption? ? "" : "alone"}",
:id => presenter.expandable? ? "content-expand#{item_no}" : ''}
.cm-s-default.md_and_cm=markdown presenter.content