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
iv
gitlab-ce
Commits
85a6fe4b
Commit
85a6fe4b
authored
Jan 14, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve/side_filters' of /home/git/repositories/gitlab/gitlabhq
parents
5a52c9b0
8b513fbc
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
78 additions
and
70 deletions
+78
-70
app/assets/stylesheets/generic/common.scss
app/assets/stylesheets/generic/common.scss
+5
-5
app/assets/stylesheets/gl_bootstrap.scss
app/assets/stylesheets/gl_bootstrap.scss
+9
-1
app/views/dashboard/_projects_filter.html.haml
app/views/dashboard/_projects_filter.html.haml
+55
-0
app/views/dashboard/projects.html.haml
app/views/dashboard/projects.html.haml
+1
-56
app/views/projects/_settings_nav.html.haml
app/views/projects/_settings_nav.html.haml
+0
-2
app/views/shared/_filter.html.haml
app/views/shared/_filter.html.haml
+4
-3
app/views/shared/_project_filter.html.haml
app/views/shared/_project_filter.html.haml
+2
-1
features/steps/dashboard/dashboard_issues.rb
features/steps/dashboard/dashboard_issues.rb
+1
-1
features/steps/dashboard/dashboard_merge_requests.rb
features/steps/dashboard/dashboard_merge_requests.rb
+1
-1
No files found.
app/assets/stylesheets/generic/common.scss
View file @
85a6fe4b
...
...
@@ -475,13 +475,13 @@ table {
}
}
.btn-sign-in
{
margin-top
:
7px
;
text-shadow
:
none
;
}
.side-filters
{
fieldset
{
margin-bottom
:
15px
;
}
}
.btn-sign-in
{
margin-top
:
7px
;
text-shadow
:
none
;
}
app/assets/stylesheets/gl_bootstrap.scss
View file @
85a6fe4b
...
...
@@ -140,7 +140,15 @@ $pagination-active-bg: $bg_style_color;
}
}
.nav-tabs
>
li
>
a
,
.nav-pills
>
li
>
a
{
color
:
#666
;
}
.nav-tabs
>
li
>
a
,
.nav-pills
>
li
>
a
{
color
:
#666
;
}
.nav-small
>
li
>
a
{
padding
:
3px
5px
;
font-size
:
12px
;
}
/*
...
...
app/views/dashboard/_projects_filter.html.haml
0 → 100644
View file @
85a6fe4b
%fieldset
%ul
.nav.nav-pills.nav-stacked
=
nav_tab
:scope
,
nil
do
=
link_to
projects_dashboard_filter_path
(
scope:
nil
)
do
All
%span
.pull-right
=
current_user
.
authorized_projects
.
count
=
nav_tab
:scope
,
'personal'
do
=
link_to
projects_dashboard_filter_path
(
scope:
'personal'
)
do
Personal
%span
.pull-right
=
current_user
.
personal_projects
.
count
=
nav_tab
:scope
,
'joined'
do
=
link_to
projects_dashboard_filter_path
(
scope:
'joined'
)
do
Joined
%span
.pull-right
=
current_user
.
authorized_projects
.
joined
(
current_user
).
count
=
nav_tab
:scope
,
'owned'
do
=
link_to
projects_dashboard_filter_path
(
scope:
'owned'
)
do
Owned
%span
.pull-right
=
current_user
.
owned_projects
.
count
%fieldset
%legend
Visibility
%ul
.nav.nav-pills.nav-stacked.nav-small.visibility-filter
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
%li
{
class:
(
level
.
to_s
==
params
[
:visibility_level
])
?
'active'
:
'light'
}
=
link_to
projects_dashboard_filter_path
(
visibility_level:
level
)
do
=
visibility_level_icon
(
level
)
=
visibility_level_label
(
level
)
-
if
@groups
.
present?
%fieldset
%legend
Groups
%ul
.nav.nav-pills.nav-stacked.nav-small
-
@groups
.
each
do
|
group
|
%li
{
class:
(
group
.
name
==
params
[
:group
])
?
'active'
:
'light'
}
=
link_to
projects_dashboard_filter_path
(
group:
group
.
name
)
do
%i
.icon-folder-close-alt
=
group
.
name
%small
.pull-right
=
group
.
projects
.
count
-
if
@labels
.
present?
%fieldset
%legend
Labels
%ul
.nav.nav-pills.nav-stacked.nav-small
-
@labels
.
each
do
|
label
|
%li
{
class:
(
label
.
name
==
params
[
:label
])
?
'active'
:
'light'
}
=
link_to
projects_dashboard_filter_path
(
scope:
params
[
:scope
],
label:
label
.
name
)
do
%i
.icon-tag
=
label
.
name
app/views/dashboard/projects.html.haml
View file @
85a6fe4b
...
...
@@ -26,62 +26,7 @@
%hr
.row
.col-md-3.hidden-sm.hidden-xs.side-filters
%fieldset
%ul
.nav.nav-pills.nav-stacked
=
nav_tab
:scope
,
nil
do
=
link_to
projects_dashboard_filter_path
(
scope:
nil
)
do
All
%span
.pull-right
=
current_user
.
authorized_projects
.
count
=
nav_tab
:scope
,
'personal'
do
=
link_to
projects_dashboard_filter_path
(
scope:
'personal'
)
do
Personal
%span
.pull-right
=
current_user
.
personal_projects
.
count
=
nav_tab
:scope
,
'joined'
do
=
link_to
projects_dashboard_filter_path
(
scope:
'joined'
)
do
Joined
%span
.pull-right
=
current_user
.
authorized_projects
.
joined
(
current_user
).
count
=
nav_tab
:scope
,
'owned'
do
=
link_to
projects_dashboard_filter_path
(
scope:
'owned'
)
do
Owned
%span
.pull-right
=
current_user
.
owned_projects
.
count
%fieldset
%legend
Visibility
%ul
.bordered-list.visibility-filter
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
%li
{
class:
(
level
.
to_s
==
params
[
:visibility_level
])
?
'active'
:
'light'
}
=
link_to
projects_dashboard_filter_path
(
visibility_level:
level
)
do
=
visibility_level_icon
(
level
)
=
visibility_level_label
(
level
)
-
if
@groups
.
present?
%fieldset
%legend
Groups
%ul
.bordered-list
-
@groups
.
each
do
|
group
|
%li
{
class:
(
group
.
name
==
params
[
:group
])
?
'active'
:
'light'
}
=
link_to
projects_dashboard_filter_path
(
group:
group
.
name
)
do
%i
.icon-folder-close-alt
=
group
.
name
%small
.pull-right
=
group
.
projects
.
count
-
if
@labels
.
present?
%fieldset
%legend
Labels
%ul
.bordered-list
-
@labels
.
each
do
|
label
|
%li
{
class:
(
label
.
name
==
params
[
:label
])
?
'active'
:
'light'
}
=
link_to
projects_dashboard_filter_path
(
scope:
params
[
:scope
],
label:
label
.
name
)
do
%i
.icon-tag
=
label
.
name
=
render
"projects_filter"
.col-md-9
%ul
.bordered-list.my-projects.top-list
-
@projects
.
each
do
|
project
|
...
...
app/views/projects/_settings_nav.html.haml
View file @
85a6fe4b
%ul
.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20
=
nav_link
(
path:
'projects#edit'
)
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab "
do
%i
.icon-edit
Edit Project
=
nav_link
(
controller:
[
:team_members
,
:teams
])
do
=
link_to
project_team_index_path
(
@project
),
class:
"team-tab tab"
do
%i
.icon-group
Members
=
nav_link
(
controller: :deploy_keys
)
do
=
link_to
project_deploy_keys_path
(
@project
)
do
...
...
app/views/shared/_filter.html.haml
View file @
85a6fe4b
...
...
@@ -10,10 +10,11 @@
Created by me
%li
{
class:
(
"active"
if
params
[
:scope
]
==
'all'
)}
=
link_to
filter_path
(
entity
,
scope:
'all'
)
do
All
Everyone's
%fieldset
.status-filter
%ul
.nav.nav-pills.nav-stacked
%legend
State
%ul
.nav.nav-pills
%li
{
class:
(
"active"
if
params
[
:status
].
blank?
)}
=
link_to
filter_path
(
entity
,
status:
nil
)
do
Open
...
...
@@ -26,7 +27,7 @@
%fieldset
%legend
Projects
%ul
.nav.nav-pills.nav-
pills-small.nav-stacked
%ul
.nav.nav-pills.nav-
stacked.nav-small
-
@projects
.
each
do
|
project
|
-
unless
entities_per_project
(
project
,
entity
).
zero?
%li
{
class:
(
"active"
if
params
[
:project_id
]
==
project
.
id
.
to_s
)}
...
...
app/views/shared/_project_filter.html.haml
View file @
85a6fe4b
...
...
@@ -14,7 +14,8 @@
Created by me
%fieldset
%ul
.nav.nav-pills.nav-stacked
%legend
State
%ul
.nav.nav-pills
%li
{
class:
(
"active"
if
params
[
:state
].
blank?
)}
=
link_to
project_filter_path
(
state:
nil
)
do
Open
...
...
features/steps/dashboard/dashboard_issues.rb
View file @
85a6fe4b
...
...
@@ -40,7 +40,7 @@ class DashboardIssues < Spinach::FeatureSteps
step
'I click "All" link'
do
within
".scope-filter"
do
click_link
'All'
click_link
"Everyone's"
end
end
...
...
features/steps/dashboard/dashboard_merge_requests.rb
View file @
85a6fe4b
...
...
@@ -40,7 +40,7 @@ class DashboardMergeRequests < Spinach::FeatureSteps
step
'I click "All" link'
do
within
".scope-filter"
do
click_link
'All'
click_link
"Everyone's"
end
end
...
...
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