BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
dashboard_helper.rb
app/helpers/dashboard_helper.rb
+4
-0
_filter.html.haml
app/views/dashboard/_filter.html.haml
+5
-4
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
|
%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
...
...
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