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
0
Merge Requests
0
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
Kazuhiko Shiozaki
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
Hide 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
...
@@ -7,4 +7,8 @@ module DashboardHelper
dashboard_merge_requests_path
(
options
)
dashboard_merge_requests_path
(
options
)
end
end
end
end
def
entities_per_project
project
,
entity
project
.
items_for
(
entity
).
where
(
assignee_id:
current_user
.
id
).
count
end
end
end
app/views/dashboard/_filter.html.haml
View file @
ab42370a
...
@@ -21,10 +21,11 @@
...
@@ -21,10 +21,11 @@
%legend
Projects:
%legend
Projects:
%ul
.nav.nav-pills.nav-stacked
%ul
.nav.nav-pills.nav-stacked
-
@projects
.
each
do
|
project
|
-
@projects
.
each
do
|
project
|
%li
{
class:
(
"active"
if
params
[
:project_id
]
==
project
.
id
.
to_s
)}
-
unless
entities_per_project
(
project
,
entity
).
zero?
=
link_to
dashboard_filter_path
(
entity
,
project_id:
project
.
id
)
do
%li
{
class:
(
"active"
if
params
[
:project_id
]
==
project
.
id
.
to_s
)}
=
project
.
name_with_namespace
=
link_to
dashboard_filter_path
(
entity
,
project_id:
project
.
id
)
do
%small
.right
=
project
.
items_for
(
entity
).
where
(
assignee_id:
current_user
.
id
).
count
=
project
.
name_with_namespace
%small
.right
=
entities_per_project
(
project
,
entity
)
%fieldset
%fieldset
%hr
%hr
...
...
lib/gitlab/satellite/satellite.rb
View file @
ab42370a
...
@@ -41,11 +41,11 @@ module Gitlab
...
@@ -41,11 +41,11 @@ module Gitlab
end
end
def
lock_file
def
lock_file
Rails
.
root
.
join
(
"tmp"
,
"
#{
project
.
path
}
.lock"
)
Rails
.
root
.
join
(
"tmp"
,
"
satellite_
#{
project
.
id
}
.lock"
)
end
end
def
path
def
path
Rails
.
root
.
join
(
"tmp"
,
"repo_satellites"
,
project
.
path
)
Rails
.
root
.
join
(
"tmp"
,
"repo_satellites"
,
project
.
path
_with_namespace
)
end
end
def
repo
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