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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7c3343c1
Commit
7c3343c1
authored
May 25, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify app/views/shared/issuable/_sidebar.html.haml
parent
1f036cb7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
19 deletions
+17
-19
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+4
-5
ee/app/helpers/ee/issuables_helper.rb
ee/app/helpers/ee/issuables_helper.rb
+0
-8
ee/app/views/shared/issuable/_sidebar_item_epic.haml
ee/app/views/shared/issuable/_sidebar_item_epic.haml
+9
-6
ee/app/views/shared/issuable/_sidebar_weight.html.haml
ee/app/views/shared/issuable/_sidebar_weight.html.haml
+4
-0
No files found.
app/views/shared/issuable/_sidebar.html.haml
View file @
7c3343c1
...
...
@@ -18,7 +18,9 @@
=
render
"shared/issuable/sidebar_todo"
,
todo:
todo
,
issuable:
issuable
,
is_collapsed:
true
.block.assignee
=
render
"shared/issuable/sidebar_assignees"
,
issuable:
issuable
,
can_edit_issuable:
can_edit_issuable
,
signed_in:
current_user
.
present?
=
render_sidebar_epic
(
issuable
)
=
render_if_exists
'shared/issuable/sidebar_item_epic'
,
issuable:
issuable
.block.milestone
.sidebar-collapsed-icon.has-tooltip
{
title:
milestone_tooltip_title
(
issuable
.
milestone
),
data:
{
container:
'body'
,
html:
'true'
,
placement:
'left'
,
boundary:
'viewport'
}
}
=
icon
(
'clock-o'
,
'aria-hidden'
:
'true'
)
...
...
@@ -116,10 +118,7 @@
-
if
can?
current_user
,
:admin_label
,
@project
and
@project
=
render
partial:
"shared/issuable/label_page_create"
-
if
issuable
.
supports_weight?
.js-sidebar-weight-entry-point
=
render
'shared/promotions/promote_issue_weights'
=
render_if_exists
'shared/issuable/sidebar_weight'
,
issuable:
issuable
-
if
issuable
.
has_attribute?
(
:confidential
)
-# haml-lint:disable InlineJavaScript
...
...
ee/app/helpers/ee/issuables_helper.rb
View file @
7c3343c1
...
...
@@ -9,13 +9,5 @@ module EE
weightNoneValue:
::
Issue
::
WEIGHT_NONE
)
end
def
render_sidebar_epic
(
issuable
)
if
issuable
.
project
.
feature_available?
(
:epics
)
render
'shared/issuable/sidebar_item_epic'
,
issuable:
issuable
else
render
'shared/promotions/promote_epics'
end
end
end
end
ee/app/views/shared/issuable/_sidebar_item_epic.haml
View file @
7c3343c1
-
if
issuable
.
is_a?
(
Issue
)
.block.epic
#js-vue-sidebar-item-epic
.title.hide-collapsed
Epic
=
icon
(
'spinner spin'
)
-
if
issuable
.
project
.
feature_available?
(
:epics
)
-
if
issuable
.
is_a?
(
Issue
)
.block.epic
#js-vue-sidebar-item-epic
.title.hide-collapsed
Epic
=
icon
(
'spinner spin'
)
-
else
=
render
'shared/promotions/promote_epics'
ee/app/views/shared/issuable/_sidebar_weight.html.haml
0 → 100644
View file @
7c3343c1
-
if
local_assigns
.
fetch
(
:issuable
).
supports_weight?
.js-sidebar-weight-entry-point
=
render
'shared/promotions/promote_issue_weights'
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