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
Léo-Paul Géneau
gitlab-ce
Commits
9c843041
Commit
9c843041
authored
Jun 14, 2014
by
Job van der Voort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add responsive sidebar to issues, milestones and MRs
parent
d718209b
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
47 additions
and
11 deletions
+47
-11
app/assets/javascripts/sidebar.js.coffee
app/assets/javascripts/sidebar.js.coffee
+2
-0
app/assets/stylesheets/generic/sidebar.scss
app/assets/stylesheets/generic/sidebar.scss
+21
-1
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+3
-1
app/views/dashboard/merge_requests.html.haml
app/views/dashboard/merge_requests.html.haml
+3
-1
app/views/dashboard/show.html.haml
app/views/dashboard/show.html.haml
+1
-1
app/views/groups/issues.html.haml
app/views/groups/issues.html.haml
+3
-1
app/views/groups/merge_requests.html.haml
app/views/groups/merge_requests.html.haml
+3
-1
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+3
-1
app/views/projects/merge_requests/index.html.haml
app/views/projects/merge_requests/index.html.haml
+3
-1
app/views/projects/milestones/index.html.haml
app/views/projects/milestones/index.html.haml
+3
-1
app/views/shared/_filter.html.haml
app/views/shared/_filter.html.haml
+1
-1
app/views/shared/_project_filter.html.haml
app/views/shared/_project_filter.html.haml
+1
-1
No files found.
app/assets/javascripts/sidebar.js.coffee
View file @
9c843041
...
...
@@ -2,8 +2,10 @@ responsive_resize = ->
current_width
=
$
(
window
).
width
()
if
current_width
<
985
$
(
'.responsive-side'
).
addClass
(
"ui right wide sidebar"
)
$
(
'.responsive-side-left'
).
addClass
(
"ui left sidebar"
)
else
$
(
'.responsive-side'
).
removeClass
(
"ui right wide sidebar"
)
$
(
'.responsive-side-left'
).
removeClass
(
"ui left sidebar"
)
$
->
# Depending on window size, set the sidebar offscreen.
...
...
app/assets/stylesheets/generic/sidebar.scss
View file @
9c843041
...
...
@@ -2,10 +2,19 @@
z-index
:
1000
!
important
;
background
:
#fff
;
padding
:
10px
;
border-left
:
1px
solid
#e1e1e1
;
width
:
285px
;
}
.ui.left.sidebar
{
border-right
:
1px
solid
#e1e1e1
;
border-left
:
0
;
}
.ui.right.sidebar
{
border-left
:
1px
solid
#e1e1e1
;
border-right
:
0
;
}
.sidebar-expand-button
{
background
:
#f9f9f9
;
color
:
#555
;
...
...
@@ -27,3 +36,14 @@
padding-right
:
25px
;
}
}
.left.sidebar-expand-button
{
left
:
0px
;
right
:
auto
;
border
:
1px
solid
#E1E1E1
;
border-left
:
0
;
&
:hover
{
padding-right
:
14px
;
padding-left
:
25px
;
}
}
app/views/dashboard/issues.html.haml
View file @
9c843041
...
...
@@ -7,7 +7,9 @@
%hr
.row
.col-md-3
.left.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side-left
=
render
'shared/filter'
,
entity:
'issue'
.col-md-9
=
render
'shared/issues'
app/views/dashboard/merge_requests.html.haml
View file @
9c843041
...
...
@@ -7,7 +7,9 @@
List all merge requests from all projects you have access to.
%hr
.row
.col-md-3
.left.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side-left
=
render
'shared/filter'
,
entity:
'merge_request'
.col-md-9
=
render
'shared/merge_requests'
app/views/dashboard/show.html.haml
View file @
9c843041
...
...
@@ -2,7 +2,7 @@
.dashboard.row
.activities.col-md-8
=
render
'activities'
.side.col-md-4.responsive-side
.side.col-md-4.
left.
responsive-side
=
render
'sidebar'
.sidebar-expand-button.hidden-lg.hidden-md
...
...
app/views/groups/issues.html.haml
View file @
9c843041
...
...
@@ -11,7 +11,9 @@
%hr
.row
.col-md-3
.left.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side-left
=
render
'shared/filter'
,
entity:
'issue'
.col-md-9
=
render
'shared/issues'
app/views/groups/merge_requests.html.haml
View file @
9c843041
...
...
@@ -10,7 +10,9 @@
To see all merge requests you should visit
#{
link_to
'dashboard'
,
merge_requests_dashboard_path
}
page.
%hr
.row
.col-md-3
.left.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side-left
=
render
'shared/filter'
,
entity:
'merge_request'
.col-md-9
=
render
'shared/merge_requests'
app/views/projects/issues/index.html.haml
View file @
9c843041
=
render
"head"
.row
.col-md-3
.left.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side-left
=
render
'shared/project_filter'
,
project_entities_path:
project_issues_path
(
@project
),
labels:
true
,
redirect:
'issues'
.col-md-9.issues-holder
...
...
app/views/projects/merge_requests/index.html.haml
View file @
9c843041
...
...
@@ -7,7 +7,9 @@
%span
(
#{
@merge_requests
.
total_count
}
)
%hr
.row
.col-md-3
.left.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side-left
=
render
'shared/project_filter'
,
project_entities_path:
project_merge_requests_path
(
@project
),
labels:
true
,
redirect:
'merge_requests'
.col-md-9
...
...
app/views/projects/milestones/index.html.haml
View file @
9c843041
...
...
@@ -8,7 +8,9 @@
New Milestone
.row
.col-md-3.hidden-sm
.left.sidebar-expand-button.hidden-lg.hidden-md
%i
.icon-list.icon-2x
.col-md-3.responsive-side-left
%ul
.nav.nav-pills.nav-stacked
%li
{
class:
(
"active"
if
(
params
[
:f
]
==
"active"
||
!
params
[
:f
]))}
=
link_to
project_milestones_path
(
@project
,
f:
"active"
)
do
...
...
app/views/shared/_filter.html.haml
View file @
9c843041
.side-filters
.hidden-xs.hidden-sm
.side-filters
=
form_tag
filter_path
(
entity
),
method:
'get'
do
-
if
current_user
%fieldset
.scope-filter
...
...
app/views/shared/_project_filter.html.haml
View file @
9c843041
.side-filters
.hidden-xs.hidden-sm
.side-filters
=
form_tag
project_entities_path
,
method:
'get'
do
-
if
current_user
%fieldset
...
...
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