23 lines
984 B
Plaintext
23 lines
984 B
Plaintext
%div.commits_activity
|
|
%table
|
|
%tbody
|
|
- commits.each do |commit|
|
|
- item_no = commit.id
|
|
- GitPresenters::CommitAsMessagePresenter.present(commit, :project => @project) do |presenter|
|
|
%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
|