Show active attachments of an issue
parent
d23553f012
commit
2b6b1d79cb
|
@ -34,7 +34,7 @@ module = angular.module("taigaIssues")
|
||||||
## Issue Detail Controller
|
## Issue Detail Controller
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.AttachmentsMixin)
|
||||||
@.$inject = [
|
@.$inject = [
|
||||||
"$scope",
|
"$scope",
|
||||||
"$rootScope",
|
"$rootScope",
|
||||||
|
@ -43,10 +43,13 @@ class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
"$tgResources",
|
"$tgResources",
|
||||||
"$routeParams",
|
"$routeParams",
|
||||||
"$q",
|
"$q",
|
||||||
"$location"
|
"$location",
|
||||||
|
"$log"
|
||||||
]
|
]
|
||||||
|
|
||||||
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location) ->
|
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, @log) ->
|
||||||
|
@.attachmentsUrlName = "issues/attachments"
|
||||||
|
|
||||||
@scope.issueRef = @params.issueref
|
@scope.issueRef = @params.issueref
|
||||||
@scope.sectionName = "Issue Details"
|
@scope.sectionName = "Issue Details"
|
||||||
|
|
||||||
|
@ -105,6 +108,7 @@ class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
return promise.then(=> @.loadProject())
|
return promise.then(=> @.loadProject())
|
||||||
.then(=> @.loadUsersAndRoles())
|
.then(=> @.loadUsersAndRoles())
|
||||||
.then(=> @.loadIssue())
|
.then(=> @.loadIssue())
|
||||||
|
.then(=> @.loadAttachments(@scope.issueId))
|
||||||
.then(=> @.loadHistory())
|
.then(=> @.loadHistory())
|
||||||
|
|
||||||
getUserFullName: (userId) ->
|
getUserFullName: (userId) ->
|
||||||
|
|
|
@ -26,7 +26,8 @@ block content
|
||||||
section.us-content
|
section.us-content
|
||||||
textarea(placeholder="Write a description of your issue", ng-model="issue.description", tg-markitup)
|
textarea(placeholder="Write a description of your issue", ng-model="issue.description", tg-markitup)
|
||||||
|
|
||||||
// include views/modules/attachments
|
include views/modules/attachments
|
||||||
|
|
||||||
textarea(ng-model="issue.comment", placeholder="Write here a new commet")
|
textarea(ng-model="issue.comment", placeholder="Write here a new commet")
|
||||||
|
|
||||||
sidebar.menu-secondary.sidebar
|
sidebar.menu-secondary.sidebar
|
||||||
|
|
|
@ -29,7 +29,8 @@ block content
|
||||||
|
|
||||||
section.us-content.wysiwyg(tg-bind-html="issue.description_html")
|
section.us-content.wysiwyg(tg-bind-html="issue.description_html")
|
||||||
|
|
||||||
// include views/modules/attachments
|
include views/modules/attachments
|
||||||
|
|
||||||
section.us-activity
|
section.us-activity
|
||||||
ul.us-activity-tabs
|
ul.us-activity-tabs
|
||||||
li
|
li
|
||||||
|
|
Loading…
Reference in New Issue