From 65d9f8c16c35dd716955c420223aa22720628b6e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 1 Apr 2013 21:16:52 +0300 Subject: [PATCH] Fix notification issue --- app/services/notification_service.rb | 2 +- app/views/layouts/project_resource.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 486aef1d..f8779fd5 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -104,7 +104,7 @@ class NotificationService opts = { noteable_type: note.noteable_type, project_id: note.project_id } - if note.commit_id + if note.commit_id.present? opts.merge!(commit_id: note.commit_id) recipients = [note.commit_author] else diff --git a/app/views/layouts/project_resource.html.haml b/app/views/layouts/project_resource.html.haml index ca2f6e9a..0ca06837 100644 --- a/app/views/layouts/project_resource.html.haml +++ b/app/views/layouts/project_resource.html.haml @@ -13,7 +13,7 @@ = link_to project_path(@project), title: "Project" do %i.icon-home - - if @project.repo_exists? + - unless @project.empty_repo? - if can? current_user, :download_code, @project = nav_link(controller: %w(tree blob blame)) do = link_to 'Files', project_tree_path(@project, @ref || @repository.root_ref)