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

18 lines
701 B
Plaintext

- commits = split_commits_by_date(commits)
- cur_year = Date.today.year
- counter = 1
- commits.each_pair do |year, by_month|
- if year != cur_year
.year= "#{year} #{t("layout.year")}"
- by_month.each_pair do |month, by_day|
- by_day.each_pair do |day, commits|
.date-block
.date= raw l(commits.first.authored_date, :format => :date_block_format)
.messages
- commits.each_with_index do |commit|
- GitPresenters::CommitAsMessagePresenter.present(commit, :branch => @branch, :project => @project) do |presenter|
= render 'shared/feed_message', :presenter => presenter, :item_no => counter
- counter += 1
.both