Commit 65d9f8c16c35dd716955c420223aa22720628b6e
1 parent
76a4cbe4
Exists in
master
and in
4 other branches
Fix notification issue
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/services/notification_service.rb
... | ... | @@ -104,7 +104,7 @@ class NotificationService |
104 | 104 | |
105 | 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 | 108 | opts.merge!(commit_id: note.commit_id) |
109 | 109 | recipients = [note.commit_author] |
110 | 110 | else | ... | ... |
app/views/layouts/project_resource.html.haml
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | = link_to project_path(@project), title: "Project" do |
14 | 14 | %i.icon-home |
15 | 15 | |
16 | - - if @project.repo_exists? | |
16 | + - unless @project.empty_repo? | |
17 | 17 | - if can? current_user, :download_code, @project |
18 | 18 | = nav_link(controller: %w(tree blob blame)) do |
19 | 19 | = link_to 'Files', project_tree_path(@project, @ref || @repository.root_ref) | ... | ... |