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
bb502530
Commit
bb502530
authored
Jul 24, 2020
by
Donald Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added path variable
parent
e87d2f4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+3
-2
No files found.
app/views/projects/issues/show.html.haml
View file @
bb502530
...
...
@@ -9,6 +9,7 @@
-
can_reopen_issue
=
can?
(
current_user
,
:reopen_issue
,
@issue
)
-
can_report_spam
=
@issue
.
submittable_as_spam_by?
(
current_user
)
-
can_create_issue
=
show_new_issue_link?
(
@project
)
-
related_branches_path
=
related_branches_project_issue_path
(
@project
,
@issue
)
=
render_if_exists
"projects/issues/alert_blocked"
,
issue:
@issue
,
current_user:
current_user
=
render
"projects/issues/alert_moved_from_service_desk"
,
issue:
@issue
...
...
@@ -82,8 +83,8 @@
#js-related-merge-requests
{
data:
{
endpoint:
expose_path
(
api_v4_projects_issues_related_merge_requests_path
(
id:
@project
.
id
,
issue_iid:
@issue
.
iid
)),
project_namespace:
@project
.
namespace
.
path
,
project_path:
@project
.
path
}
}
-
if
can?
(
current_user
,
:download_code
,
@project
)
-
add_page_startup_api_call
related_branches_p
roject_issue_path
(
@project
,
@issue
)
#related-branches
{
data:
{
url:
related_branches_p
roject_issue_path
(
@project
,
@issue
)
}
}
-
add_page_startup_api_call
related_branches_p
ath
#related-branches
{
data:
{
url:
related_branches_p
ath
}
}
-# This element is filled in using JavaScript.
.content-block.emoji-block.emoji-block-sticky
...
...
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