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
44ac961b
Commit
44ac961b
authored
Jul 03, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
group filter from dashboard. Design improvements of dashboard
parent
3802ae0c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
18 deletions
+40
-18
app/assets/javascripts/dashboard.js.coffee
app/assets/javascripts/dashboard.js.coffee
+5
-4
app/assets/stylesheets/sections/dashboard.scss
app/assets/stylesheets/sections/dashboard.scss
+27
-4
app/assets/stylesheets/sections/events.scss
app/assets/stylesheets/sections/events.scss
+2
-2
app/views/dashboard/_groups.html.haml
app/views/dashboard/_groups.html.haml
+4
-6
app/views/dashboard/_projects.html.haml
app/views/dashboard/_projects.html.haml
+2
-2
No files found.
app/assets/javascripts/dashboard.js.coffee
View file @
44ac961b
...
@@ -8,15 +8,16 @@ class Dashboard
...
@@ -8,15 +8,16 @@ class Dashboard
@
toggleFilter
(
$
(
event
.
currentTarget
))
@
toggleFilter
(
$
(
event
.
currentTarget
))
@
reloadActivities
()
@
reloadActivities
()
$
(
".dash-
projects-
filter"
).
keyup
->
$
(
".dash-filter"
).
keyup
->
terms
=
$
(
this
).
val
()
terms
=
$
(
this
).
val
()
uiBox
=
$
(
this
).
parents
(
'.ui-box'
).
first
()
if
terms
==
""
||
terms
==
undefined
if
terms
==
""
||
terms
==
undefined
$
(
".dash-projects
-list li"
).
show
()
uiBox
.
find
(
".dash
-list li"
).
show
()
else
else
$
(
".dash-projects
-list li"
).
each
(
index
)
->
uiBox
.
find
(
".dash
-list li"
).
each
(
index
)
->
name
=
$
(
this
).
find
(
".well-title"
).
text
()
name
=
$
(
this
).
find
(
".well-title"
).
text
()
if
name
.
search
(
terms
)
==
-
1
if
name
.
toLowerCase
().
search
(
terms
.
toLowerCase
()
)
==
-
1
$
(
this
).
hide
()
$
(
this
).
hide
()
else
else
$
(
this
).
show
()
$
(
this
).
show
()
...
...
app/assets/stylesheets/sections/dashboard.scss
View file @
44ac961b
...
@@ -7,7 +7,9 @@
...
@@ -7,7 +7,9 @@
@extend
.pull-right
;
@extend
.pull-right
;
.ui-box
{
.ui-box
{
margin
:
3px
;
margin
:
0px
;
box-shadow
:
none
;
>
.title
{
>
.title
{
padding
:
2px
15px
;
padding
:
2px
15px
;
}
}
...
@@ -28,7 +30,6 @@
...
@@ -28,7 +30,6 @@
}
}
}
}
}
}
@extend
.ui-box
;
}
}
}
}
}
}
...
@@ -47,7 +48,7 @@
...
@@ -47,7 +48,7 @@
}
}
.dashboard
{
.dashboard
{
.dash-
projects-
filter
{
.dash-filter
{
margin
:
0
;
margin
:
0
;
padding
:
4px
6px
;
padding
:
4px
6px
;
width
:
202px
;
width
:
202px
;
...
@@ -58,7 +59,29 @@
...
@@ -58,7 +59,29 @@
}
}
@media
(
max-width
:
1200px
)
{
@media
(
max-width
:
1200px
)
{
.dashboard
.dash-
projects-
filter
{
.dashboard
.dash-filter
{
width
:
132px
;
width
:
132px
;
}
}
}
}
.dash-sidebar-tabs
{
margin-bottom
:
2px
;
border
:
none
;
margin
:
0
;
li
{
&
.active
{
a
{
@include
linear-gradient
(
#f5f5f5
,
#eee
);
border-bottom
:
1px
solid
#EEE
!
important
;
&
:hover
{
background
:
#eee
;
}
}
}
a
{
border-color
:
#CCC
!
important
;
}
}
}
app/assets/stylesheets/sections/events.scss
View file @
44ac961b
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
.event-note
{
.event-note
{
color
:
#555
;
color
:
#555
;
margin-top
:
5px
;
margin-top
:
5px
;
margin-left
:
40
px
;
margin-left
:
35
px
;
pre
{
pre
{
border
:
none
;
border
:
none
;
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
}
}
}
}
ul
{
ul
{
margin-left
:
50
px
;
margin-left
:
35
px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
.avatar
{
.avatar
{
width
:
18px
;
width
:
18px
;
...
...
app/views/dashboard/_groups.html.haml
View file @
44ac961b
.ui-box
.ui-box
%h5
.title
%h5
.title.clearfix
Groups
=
search_field_tag
:filter_group
,
nil
,
placeholder:
'Filter by name'
,
class:
'dash-filter'
%span
.light
(
#{
groups
.
count
}
)
-
if
current_user
.
can_create_group?
-
if
current_user
.
can_create_group?
%span
.pull-right
%span
.pull-right
=
link_to
new_group_path
,
class:
"btn
btn-small
"
do
=
link_to
new_group_path
,
class:
"btn"
do
%i
.icon-plus
%i
.icon-plus
New Group
New Group
%ul
.well-list
%ul
.well-list
.dash-list
-
groups
.
each
do
|
group
|
-
groups
.
each
do
|
group
|
%li
%li
=
link_to
group_path
(
id:
group
.
path
),
class:
dom_class
(
group
)
do
=
link_to
group_path
(
id:
group
.
path
),
class:
dom_class
(
group
)
do
...
...
app/views/dashboard/_projects.html.haml
View file @
44ac961b
.ui-box
.ui-box
%h5
.title.clearfix
%h5
.title.clearfix
=
search_field_tag
:filter_projects
,
nil
,
placeholder:
'Filter by name'
,
class:
'dash-
projects-
filter'
=
search_field_tag
:filter_projects
,
nil
,
placeholder:
'Filter by name'
,
class:
'dash-filter'
-
if
current_user
.
can_create_project?
-
if
current_user
.
can_create_project?
%span
.pull-right
%span
.pull-right
=
link_to
new_project_path
,
class:
"btn"
do
=
link_to
new_project_path
,
class:
"btn"
do
%i
.icon-plus
%i
.icon-plus
New Project
New Project
%ul
.well-list.dash-
projects-
list
%ul
.well-list.dash-list
-
projects
.
each
do
|
project
|
-
projects
.
each
do
|
project
|
%li
%li
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
...
...
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