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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
7 deletions
+43
-7
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+3
-0
app/controllers/dashboard_controller.rb
app/controllers/dashboard_controller.rb
+2
-3
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+19
-2
app/views/dashboard/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 {
border-bottom
:
1px
solid
#eee
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.05
);
cursor
:pointer
;
&
.smoke
{
background-color
:
#f5f5f5
;
}
&
:hover
{
background
:
$hover
;
}
...
...
app/controllers/dashboard_controller.rb
View file @
667edcdd
...
...
@@ -19,15 +19,14 @@ class DashboardController < ApplicationController
# Get authored or assigned open merge requests
def
merge_requests
@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
# Get only assigned issues
def
issues
@projects
=
current_user
.
projects
.
all
@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
)
respond_to
do
|
format
|
...
...
app/views/dashboard/issues.html.haml
View file @
667edcdd
...
...
@@ -3,5 +3,22 @@
%small
(assigned to you)
%br
-
if
@issues
.
any?
.ui-box
=
render
"dashboard/issues_feed"
%div
#issues-table-holder
.ui-box
%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 @@
%small
(authored or assigned to you)
%br
-
if
@merge_requests
.
any?
.ui-box
=
render
"dashboard/merge_requests_feed"
%div
#merge_requests-table-holder
.ui-box
%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