Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ab42370a
Commit
ab42370a
authored
Nov 21, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sattellites
parent
23734a71
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
app/helpers/dashboard_helper.rb
app/helpers/dashboard_helper.rb
+4
-0
app/views/dashboard/_filter.html.haml
app/views/dashboard/_filter.html.haml
+5
-4
lib/gitlab/satellite/satellite.rb
lib/gitlab/satellite/satellite.rb
+2
-2
No files found.
app/helpers/dashboard_helper.rb
View file @
ab42370a
...
...
@@ -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
app/views/dashboard/_filter.html.haml
View file @
ab42370a
...
...
@@ -21,10 +21,11 @@
%legend
Projects:
%ul
.nav.nav-pills.nav-stacked
-
@projects
.
each
do
|
project
|
-
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
=
project
.
items_for
(
entity
).
where
(
assignee_id:
current_user
.
id
).
count
%small
.right
=
entities_per_project
(
project
,
entity
)
%fieldset
%hr
...
...
lib/gitlab/satellite/satellite.rb
View file @
ab42370a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment