Commit 65d9f8c16c35dd716955c420223aa22720628b6e

Authored by Dmitriy Zaporozhets
1 parent 76a4cbe4

Fix notification issue

app/services/notification_service.rb
@@ -104,7 +104,7 @@ class NotificationService @@ -104,7 +104,7 @@ class NotificationService
104 104
105 opts = { noteable_type: note.noteable_type, project_id: note.project_id } 105 opts = { noteable_type: note.noteable_type, project_id: note.project_id }
106 106
107 - if note.commit_id 107 + if note.commit_id.present?
108 opts.merge!(commit_id: note.commit_id) 108 opts.merge!(commit_id: note.commit_id)
109 recipients = [note.commit_author] 109 recipients = [note.commit_author]
110 else 110 else
app/views/layouts/project_resource.html.haml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 = link_to project_path(@project), title: "Project" do 13 = link_to project_path(@project), title: "Project" do
14 %i.icon-home 14 %i.icon-home
15 15
16 - - if @project.repo_exists? 16 + - unless @project.empty_repo?
17 - if can? current_user, :download_code, @project 17 - if can? current_user, :download_code, @project
18 = nav_link(controller: %w(tree blob blame)) do 18 = nav_link(controller: %w(tree blob blame)) do
19 = link_to 'Files', project_tree_path(@project, @ref || @repository.root_ref) 19 = link_to 'Files', project_tree_path(@project, @ref || @repository.root_ref)