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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
0b030e00
Commit
0b030e00
authored
Jan 28, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add icon when collapsed.
Hide and show icons in collapse and expanded mode.
parent
f64e3506
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+22
-0
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+4
-2
No files found.
app/assets/stylesheets/pages/issuable.scss
View file @
0b030e00
...
@@ -174,4 +174,26 @@
...
@@ -174,4 +174,26 @@
background
:
$gray-normal
;
background
:
$gray-normal
;
border
:
1px
solid
$gray-darkest
;
border
:
1px
solid
$gray-darkest
;
}
}
&
.right-sidebar-collapsed
{
.issuable-count
,
.issuable-nav
,
.assignee
.title
,
.assignee
.selectbox
,
.assignee
.value
.author
,
.milestone
,
.labels
,
.participants
,
.light
,
.project-reference
{
display
:
none
;
}
}
&
.right-sidebar-expanded
{
.sidebar-collapsed-icon
{
display
:
none
;
}
}
}
}
\ No newline at end of file
app/views/shared/issuable/_sidebar.html.haml
View file @
0b030e00
...
@@ -33,6 +33,8 @@
...
@@ -33,6 +33,8 @@
=
users_select_tag
(
"
#{
issuable
.
class
.
table_name
.
singularize
}
[assignee_id]"
,
placeholder:
'Select assignee'
,
class:
'custom-form-control js-select2 js-assignee'
,
selected:
issuable
.
assignee_id
,
project:
@target_project
,
null_user:
true
,
current_user:
true
,
first_user:
true
)
=
users_select_tag
(
"
#{
issuable
.
class
.
table_name
.
singularize
}
[assignee_id]"
,
placeholder:
'Select assignee'
,
class:
'custom-form-control js-select2 js-assignee'
,
selected:
issuable
.
assignee_id
,
project:
@target_project
,
null_user:
true
,
current_user:
true
,
first_user:
true
)
.block.milestone
.block.milestone
.sidebar-collapsed-icon
=
icon
(
'balance-scale'
)
.title
.title
%label
%label
Milestone
Milestone
...
@@ -54,7 +56,7 @@
...
@@ -54,7 +56,7 @@
=
f
.
submit
class:
'btn hide'
=
f
.
submit
class:
'btn hide'
-
if
issuable
.
project
.
labels
.
any?
-
if
issuable
.
project
.
labels
.
any?
.block
.block
.labels
.title
.title
%label
Labels
%label
Labels
-
if
can?
(
current_user
,
:"admin_
#{
issuable
.
to_ability_name
}
"
,
@project
)
-
if
can?
(
current_user
,
:"admin_
#{
issuable
.
to_ability_name
}
"
,
@project
)
...
@@ -87,7 +89,7 @@
...
@@ -87,7 +89,7 @@
You're receiving notifications because you're subscribed to this thread.
You're receiving notifications because you're subscribed to this thread.
-
project_ref
=
cross_project_reference
(
@project
,
issuable
)
-
project_ref
=
cross_project_reference
(
@project
,
issuable
)
.block
.block
.project-reference
.title
.title
.cross-project-reference
.cross-project-reference
%span
%span
...
...
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