2012-02-27 17:40:46 +00:00
|
|
|
- commits = split_commits_by_date(commits)
|
|
|
|
- cur_year = Date.today.year
|
|
|
|
- counter = 1
|
|
|
|
|
|
|
|
- commits.each_pair do |year, by_month|
|
|
|
|
- if year != cur_year
|
2012-03-01 17:37:24 +00:00
|
|
|
.year= "#{year} #{t("layout.year")}"
|
2012-02-27 17:40:46 +00:00
|
|
|
|
|
|
|
- by_month.each_pair do |month, by_day|
|
|
|
|
- by_day.each_pair do |day, commits|
|
|
|
|
.date-block
|
2012-03-21 19:55:14 +00:00
|
|
|
.date= raw l(commits.first.authored_date, :format => :date_block_format)
|
2012-02-27 17:40:46 +00:00
|
|
|
.messages
|
|
|
|
- commits.each_with_index do |commit|
|
2012-11-28 13:15:15 +00:00
|
|
|
- GitPresenters::CommitAsMessagePresenter.present(commit, :project => @project) do |presenter|
|
2012-05-02 10:18:07 +01:00
|
|
|
= render 'shared/feed_message', :presenter => presenter, :item_no => counter
|
2012-02-27 17:40:46 +00:00
|
|
|
- counter += 1
|
2012-09-26 18:00:58 +01:00
|
|
|
.both
|