fix error with empty commit

This commit is contained in:
Alexander Machehin 2014-10-06 19:55:15 +06:00
parent f0fe50f033
commit ab929cb93e
1 changed files with 4 additions and 3 deletions

View File

@ -2,9 +2,10 @@
= render 'repo_block', project: @project = render 'repo_block', project: @project
= render 'about_block', project: @project = render 'about_block', project: @project
%h3= t("layout.projects.last_commit") - if @commit.present?
- GitPresenters::CommitAsMessagePresenter.present(@commit, project: @project) do |presenter| %h3= t("layout.projects.last_commit")
= render 'shared/feed_message', presenter: presenter, item_no: 1 - GitPresenters::CommitAsMessagePresenter.present(@commit, project: @project) do |presenter|
= render 'shared/feed_message', presenter: presenter, item_no: 1
.both .both