Skip to content
Snippets Groups Projects
Commit ab42370a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix sattellites

parent 23734a71
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,4 +7,8 @@ module DashboardHelper
dashboard_merge_requests_path(options)
end
end
def entities_per_project project, entity
project.items_for(entity).where(assignee_id: current_user.id).count
end
end
Loading
Loading
@@ -21,10 +21,11 @@
%legend Projects:
%ul.nav.nav-pills.nav-stacked
- @projects.each do |project|
%li{class: ("active" if params[:project_id] == project.id.to_s)}
= link_to dashboard_filter_path(entity, project_id: project.id) do
= project.name_with_namespace
%small.right= project.items_for(entity).where(assignee_id: current_user.id).count
- unless entities_per_project(project, entity).zero?
%li{class: ("active" if params[:project_id] == project.id.to_s)}
= link_to dashboard_filter_path(entity, project_id: project.id) do
= project.name_with_namespace
%small.right= entities_per_project(project, entity)
 
%fieldset
%hr
Loading
Loading
Loading
Loading
@@ -41,11 +41,11 @@ module Gitlab
end
 
def lock_file
Rails.root.join("tmp", "#{project.path}.lock")
Rails.root.join("tmp", "satellite_#{project.id}.lock")
end
 
def path
Rails.root.join("tmp", "repo_satellites", project.path)
Rails.root.join("tmp", "repo_satellites", project.path_with_namespace)
end
 
def repo
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment