2012-09-27 17:59:48 +01:00
|
|
|
%div.commits_activity
|
|
|
|
%table
|
|
|
|
%tbody
|
|
|
|
- commits.each do |commit|
|
|
|
|
- item_no = commit.id
|
2012-11-28 13:15:15 +00:00
|
|
|
- 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
|