Add taskboard button in issues detail
parent
92460e3733
commit
9f22c12b3d
|
@ -150,12 +150,18 @@ class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
}
|
}
|
||||||
@scope.nextUrl = @navUrls.resolve("project-issues-detail", ctx)
|
@scope.nextUrl = @navUrls.resolve("project-issues-detail", ctx)
|
||||||
|
|
||||||
|
loadSprint: ->
|
||||||
|
if @scope.issue.milestone
|
||||||
|
return @rs.sprints.get(@scope.issue.project, @scope.issue.milestone).then (sprint) =>
|
||||||
|
@scope.sprint = sprint
|
||||||
|
return sprint
|
||||||
|
|
||||||
loadInitialData: ->
|
loadInitialData: ->
|
||||||
project = @.loadProject()
|
project = @.loadProject()
|
||||||
|
|
||||||
@.fillUsersAndRoles(project.members, project.roles)
|
@.fillUsersAndRoles(project.members, project.roles)
|
||||||
|
|
||||||
return @.loadIssue()
|
return @.loadIssue().then(=> @.loadSprint())
|
||||||
|
|
||||||
###
|
###
|
||||||
# Note: This methods (onUpvote() and onDownvote()) are related to tg-vote-button.
|
# Note: This methods (onUpvote() and onDownvote()) are related to tg-vote-button.
|
||||||
|
|
|
@ -1429,6 +1429,8 @@
|
||||||
"GO_TO_EXTERNAL_REFERENCE": "Go to origin",
|
"GO_TO_EXTERNAL_REFERENCE": "Go to origin",
|
||||||
"ACTION_DELETE": "Delete issue",
|
"ACTION_DELETE": "Delete issue",
|
||||||
"LIGHTBOX_TITLE_BLOKING_ISSUE": "Blocking issue",
|
"LIGHTBOX_TITLE_BLOKING_ISSUE": "Blocking issue",
|
||||||
|
"LINK_TASKBOARD": "Taskboard",
|
||||||
|
"TITLE_LINK_TASKBOARD": "Go to the taskboard",
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"PRIORITY": "Priority",
|
"PRIORITY": "Priority",
|
||||||
"SEVERITY": "Severity",
|
"SEVERITY": "Severity",
|
||||||
|
|
|
@ -9,6 +9,15 @@ div.wrapper(
|
||||||
div.main.us-detail
|
div.main.us-detail
|
||||||
div.us-detail-header.header-with-actions
|
div.us-detail-header.header-with-actions
|
||||||
include ../includes/components/mainTitle
|
include ../includes/components/mainTitle
|
||||||
|
.action-buttons
|
||||||
|
a.button-gray(
|
||||||
|
href=""
|
||||||
|
tg-check-permission="view_milestones"
|
||||||
|
tg-nav="project-taskboard:project=project.slug,sprint=sprint.slug"
|
||||||
|
ng-if="sprint && project.is_backlog_activated"
|
||||||
|
title="{{'ISSUES.TITLE_LINK_TASKBOARD' | translate}}"
|
||||||
|
translate="ISSUES.LINK_TASKBOARD"
|
||||||
|
)
|
||||||
|
|
||||||
section.us-story-main-data
|
section.us-story-main-data
|
||||||
header
|
header
|
||||||
|
|
Loading…
Reference in New Issue