fix error with empty commit
This commit is contained in:
parent
f0fe50f033
commit
ab929cb93e
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue