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
Boxiang Sun
gitlab-ce
Commits
cabb6171
Commit
cabb6171
authored
Feb 29, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open sidebar button on mobile.
parent
c3e07b6f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
6 deletions
+25
-6
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+2
-2
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+19
-3
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+1
-1
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+3
-0
No files found.
app/assets/javascripts/application.js.coffee
View file @
cabb6171
...
@@ -225,8 +225,8 @@ $ ->
...
@@ -225,8 +225,8 @@ $ ->
$gutterIcon
.
closest
(
'a'
).
trigger
(
'click'
)
$gutterIcon
.
closest
(
'a'
).
trigger
(
'click'
)
$
(
document
)
$
(
document
)
.
off
'click'
,
'
aside
.gutter-toggle'
.
off
'click'
,
'.gutter-toggle'
.
on
'click'
,
'
aside
.gutter-toggle'
,
(
e
)
->
.
on
'click'
,
'.gutter-toggle'
,
(
e
)
->
e
.
preventDefault
()
e
.
preventDefault
()
$this
=
$
(
this
)
$this
=
$
(
this
)
$thisIcon
=
$this
.
find
'i'
$thisIcon
=
$this
.
find
'i'
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
cabb6171
...
@@ -199,8 +199,13 @@
...
@@ -199,8 +199,13 @@
padding-left
:
$sidebar_width
;
padding-left
:
$sidebar_width
;
&
.right-sidebar-collapsed
{
&
.right-sidebar-collapsed
{
@media
(
max-width
:
$screen-sm-max
)
{
padding-right
:
0
;
}
@media
(
min-width
:
$screen-sm-min
)
{
padding-right
:
$sidebar_collapsed_width
;
padding-right
:
$sidebar_collapsed_width
;
}
}
}
.sidebar-wrapper
{
.sidebar-wrapper
{
width
:
$sidebar_width
;
width
:
$sidebar_width
;
...
@@ -225,8 +230,13 @@
...
@@ -225,8 +230,13 @@
padding-left
:
$sidebar_collapsed_width
;
padding-left
:
$sidebar_collapsed_width
;
&
.right-sidebar-collapsed
{
&
.right-sidebar-collapsed
{
@media
(
max-width
:
$screen-sm-max
)
{
padding-right
:
0
;
}
@media
(
min-width
:
$screen-sm-min
)
{
padding-right
:
$sidebar_collapsed_width
;
padding-right
:
$sidebar_collapsed_width
;
}
}
}
.sidebar-wrapper
{
.sidebar-wrapper
{
width
:
$sidebar_collapsed_width
;
width
:
$sidebar_collapsed_width
;
...
@@ -292,7 +302,13 @@
...
@@ -292,7 +302,13 @@
}
}
.page-sidebar-collapsed
{
.page-sidebar-collapsed
{
@media
(
max-width
:
$screen-sm-max
)
{
@include
collapsed-sidebar
;
@include
collapsed-sidebar
;
padding-right
:
0
;
}
@media
(
min-width
:
$screen-sm-min
)
{
@include
collapsed-sidebar
;
}
}
}
.page-sidebar-expanded
{
.page-sidebar-expanded
{
...
...
app/helpers/issuables_helper.rb
View file @
cabb6171
...
@@ -5,7 +5,7 @@ module IssuablesHelper
...
@@ -5,7 +5,7 @@ module IssuablesHelper
end
end
def
sidebar_gutter_collapsed_class
def
sidebar_gutter_collapsed_class
"right-sidebar-
#{
sidebar_gutter_collapsed?
?
'collapsed'
:
'expanded'
}
"
"
hidden-xs
right-sidebar-
#{
sidebar_gutter_collapsed?
?
'collapsed'
:
'expanded'
}
"
end
end
def
issuables_count
(
issuable
)
def
issuables_count
(
issuable
)
...
...
app/views/projects/issues/show.html.haml
View file @
cabb6171
...
@@ -18,6 +18,9 @@
...
@@ -18,6 +18,9 @@
%span
.hidden-sm.hidden-md.hidden-lg
%span
.hidden-sm.hidden-md.hidden-lg
=
icon
(
'circle-o'
)
=
icon
(
'circle-o'
)
%a
.btn.btn-default.pull-right.hidden-sm.hidden-md.hidden-lg.gutter-toggle
{
href:
"#"
}
«
.issue-meta
.issue-meta
%strong
.identifier
%strong
.identifier
Issue ##{@issue.iid}
Issue ##{@issue.iid}
...
...
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