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
667edcdd
Commit
667edcdd
authored
Apr 08, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dashboard issues/mr pages improved
parent
88974b50
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
7 deletions
+43
-7
common.scss
app/assets/stylesheets/common.scss
+3
-0
dashboard_controller.rb
app/controllers/dashboard_controller.rb
+2
-3
issues.html.haml
app/views/dashboard/issues.html.haml
+19
-2
merge_requests.html.haml
app/views/dashboard/merge_requests.html.haml
+19
-2
No files found.
app/assets/stylesheets/common.scss
View file @
667edcdd
...
@@ -406,6 +406,9 @@ img.lil_av {
...
@@ -406,6 +406,9 @@ img.lil_av {
border-bottom
:
1px
solid
#eee
;
border-bottom
:
1px
solid
#eee
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.05
);
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.05
);
cursor
:pointer
;
cursor
:pointer
;
&
.smoke
{
background-color
:
#f5f5f5
;
}
&
:hover
{
&
:hover
{
background
:
$hover
;
background
:
$hover
;
}
}
...
...
app/controllers/dashboard_controller.rb
View file @
667edcdd
...
@@ -19,15 +19,14 @@ class DashboardController < ApplicationController
...
@@ -19,15 +19,14 @@ class DashboardController < ApplicationController
# Get authored or assigned open merge requests
# Get authored or assigned open merge requests
def
merge_requests
def
merge_requests
@projects
=
current_user
.
projects
.
all
@projects
=
current_user
.
projects
.
all
@merge_requests
=
current_user
.
cared_merge_requests
.
order
(
"created_at DESC"
).
limit
(
4
0
)
@merge_requests
=
current_user
.
cared_merge_requests
.
order
(
"created_at DESC"
).
page
(
params
[
:page
]).
per
(
2
0
)
end
end
# Get only assigned issues
# Get only assigned issues
def
issues
def
issues
@projects
=
current_user
.
projects
.
all
@projects
=
current_user
.
projects
.
all
@user
=
current_user
@user
=
current_user
@issues
=
current_user
.
assigned_issues
.
opened
.
order
(
"created_at DESC"
).
limit
(
40
)
@issues
=
current_user
.
assigned_issues
.
opened
.
order
(
"created_at DESC"
).
page
(
params
[
:page
]).
per
(
20
)
@issues
=
@issues
.
includes
(
:author
,
:project
)
@issues
=
@issues
.
includes
(
:author
,
:project
)
respond_to
do
|
format
|
respond_to
do
|
format
|
...
...
app/views/dashboard/issues.html.haml
View file @
667edcdd
...
@@ -3,5 +3,22 @@
...
@@ -3,5 +3,22 @@
%small
(assigned to you)
%small
(assigned to you)
%br
%br
-
if
@issues
.
any?
%div
#issues-table-holder
.ui-box
.ui-box
=
render
"dashboard/issues_feed"
%title
%ul
#issues-table
.unstyled
-
if
@issues
.
any?
-
@issues
.
group_by
(
&
:project
).
each
do
|
group
|
%li
.wll.smoke
-
project
=
group
[
0
]
=
project
.
name
-
group
[
1
].
each
do
|
issue
|
=
render
(
:partial
=>
'issues/show'
,
:locals
=>
{
:issue
=>
issue
})
%li
.bottom
.row
.span10
=
paginate
@issues
,
:theme
=>
"gitlab"
.span4.right
%span
.cgray.right
#{
@issues
.
total_count
}
issues
-
else
%li
%p
.padded
Nothing to show here
app/views/dashboard/merge_requests.html.haml
View file @
667edcdd
...
@@ -3,5 +3,22 @@
...
@@ -3,5 +3,22 @@
%small
(authored or assigned to you)
%small
(authored or assigned to you)
%br
%br
-
if
@merge_requests
.
any?
%div
#merge_requests-table-holder
.ui-box
.ui-box
=
render
"dashboard/merge_requests_feed"
%title
%ul
#merge_requests-table
.unstyled
-
if
@merge_requests
.
any?
-
@merge_requests
.
group_by
(
&
:project
).
each
do
|
group
|
%li
.wll.smoke
-
project
=
group
[
0
]
=
project
.
name
-
group
[
1
].
each
do
|
merge_request
|
=
render
(
:partial
=>
'merge_requests/merge_request'
,
:locals
=>
{
:merge_request
=>
merge_request
})
%li
.bottom
.row
.span10
=
paginate
@merge_requests
,
:theme
=>
"gitlab"
.span4.right
%span
.cgray.right
#{
@merge_requests
.
total_count
}
merge requests
-
else
%li
%p
.padded
Nothing to show here
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