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
Jérome Perrin
gitlab-ce
Commits
69e0ea62
Commit
69e0ea62
authored
Oct 19, 2011
by
gitlabhq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard
parent
85265b1b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
13 deletions
+39
-13
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+30
-7
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+2
-2
app/views/projects/_recent_messages.html.haml
app/views/projects/_recent_messages.html.haml
+5
-2
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+2
-2
No files found.
app/assets/stylesheets/projects.css.scss
View file @
69e0ea62
...
...
@@ -557,21 +557,44 @@ tbody tr:nth-child(2n) td, tbody tr.even td {
img
{
padding-right
:
10px
;
}
background
:
#fff
!
important
;
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
from
(
#fff
)
,
to
(
#EAEAEA
))
!
important
;
background
:
-moz-linear-gradient
(
top
,
#fff
,
#EAEAEA
)
!
important
;
background
:
transparent
9
!
important
;
float
:
left
;
margin
:
0
20px
20px
0px
;
padding
:
5px
5
px
;;
padding
:
5px
0
px
;;
width
:
420px
;
&
.dash_wall
{
border-bottom
:
2px
solid
orange
;
span
{
background
:
orange
;
color
:black
;
}
}
&
.dash_issue
{
border-bottom
:
2px
solid
#ffbbbb
;
span
{
background
:
#ffbbbb
;
color
:black
;
padding
:
2px
;
}
}
&
.dash_commit
{
border-bottom
:
2px
solid
#bbbbff
;
span
{
background
:
#bbbbff
;
color
:black
;
padding
:
2px
;
}
}
h4
{
margin-bottom
:
3px
;
}
span
{
.author
{
background
:
#eaeaea
;
color
:
#333
;
}
}
app/controllers/projects_controller.rb
View file @
69e0ea62
...
...
@@ -64,11 +64,11 @@ class ProjectsController < ApplicationController
@date
=
case
params
[
:view
]
when
"week"
then
Date
.
today
-
7
.
days
else
Date
.
today
end
end
.
at_beginning_of_day
@heads
=
@project
.
repo
.
heads
@commits
=
@heads
.
map
do
|
h
|
@project
.
repo
.
log
(
h
.
name
,
nil
,
:since
=>
@date
-
1
.
day
)
@project
.
repo
.
log
(
h
.
name
,
nil
,
:since
=>
@date
)
end
.
flatten
.
uniq
{
|
c
|
c
.
id
}
@commits
.
sort!
do
|
x
,
y
|
...
...
app/views/projects/_recent_messages.html.haml
View file @
69e0ea62
...
...
@@ -5,21 +5,24 @@
-
case
type
-
when
"Issue"
-
css_class
=
"dash_issue"
-
issue
=
parent
-
item_code
=
issue
.
author
.
email
-
link_item_name
=
truncate
(
issue
.
title
,
:length
=>
50
)
-
link_to_item
=
project_issue_path
(
@project
,
issue
)
-
when
"Commit"
-
css_class
=
"dash_commit"
-
commit
=
parent
-
item_code
=
commit
.
author
.
email
-
link_item_name
=
truncate_commit_message
(
commit
,
50
)
-
link_to_item
=
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
-
else
-
css_class
=
"dash_wall"
-
item_code
=
@project
.
name
-
link_item_name
=
"Project Wall"
-
link_to_item
=
wall_project_path
(
@project
)
%div
.recent_message_parent
%div
{
:class
=>
"recent_message_parent #{css_class}"
}
=
image_tag
gravatar_icon
(
item_code
),
:class
=>
"left"
,
:width
=>
40
%h4
=
link_to
(
link_item_name
,
link_to_item
)
...
...
@@ -30,7 +33,7 @@
%div
.message
=
image_tag
gravatar_icon
(
note
.
author
.
email
),
:class
=>
"left"
,
:width
=>
24
,
:style
=>
"padding-right:5px;"
%p
{
:style
=>
"margin-bottom: 3px;"
}
=
link_to
truncate
(
note
.
note
,
:length
=>
50
),
"#"
=
link_to
truncate
(
note
.
note
,
:length
=>
200
),
link_to_item
+
"#note_
#{
note
.
id
}
"
-
if
note
.
attachment
.
url
%br
Attachment:
...
...
app/views/projects/show.html.haml
View file @
69e0ea62
...
...
@@ -4,7 +4,7 @@
=
form_tag
project_path
(
@project
),
:method
=>
:get
do
.span-2
=
radio_button_tag
:view
,
"day"
,
(
params
[
:view
]
||
"day"
)
==
"day"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"day_view"
=
label_tag
"day_view"
,
"
D
ay"
=
label_tag
"day_view"
,
"
Tod
ay"
.span-2
=
radio_button_tag
:view
,
"week"
,
params
[
:view
]
==
"week"
,
:onclick
=>
"this.form.submit()"
,
:id
=>
"week_view"
=
label_tag
"week_view"
,
"Week"
...
...
@@ -15,6 +15,6 @@
=
render
"projects/recent_commits"
.span-11.right
%h3
Messages
%h3
Talk
=
render
"projects/recent_messages"
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