Adding rich text for comments in issues, tasks and user stories
parent
40a2211bc8
commit
290f5d8873
|
@ -139,7 +139,7 @@ ChangeDirective = ->
|
|||
<% } %>
|
||||
|
||||
<p class="comment">
|
||||
<%- comment %>
|
||||
<%= comment %>
|
||||
</p>
|
||||
<p class="date">
|
||||
<%- creationDate %>
|
||||
|
@ -162,7 +162,7 @@ ChangeDirective = ->
|
|||
</span>
|
||||
</div>
|
||||
<p class="comment">
|
||||
<%- comment %>
|
||||
<%= comment %>
|
||||
</p>
|
||||
</div>
|
||||
""")
|
||||
|
@ -280,7 +280,7 @@ ChangeDirective = ->
|
|||
avatar: getUserAvatar(comment.user.pk)
|
||||
userFullName: getUserFullName(comment.user.pk)
|
||||
creationDate: moment(comment.created_at).format("YYYY/MM/DD HH:mm")
|
||||
comment: comment.comment
|
||||
comment: comment.comment_html
|
||||
changesText: buildChangesText(comment)
|
||||
hasChanges: countChanges(comment) > 0
|
||||
})
|
||||
|
@ -294,7 +294,7 @@ ChangeDirective = ->
|
|||
avatar: getUserAvatar(change.user.pk)
|
||||
userFullName: getUserFullName(change.user.pk)
|
||||
creationDate: moment(change.created_at).format("YYYY/MM/DD HH:mm")
|
||||
comment: change.comment
|
||||
comment: change.comment_html
|
||||
})
|
||||
|
||||
$el.html(html)
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
section.us-comments
|
||||
div.add-comment(tg-check-permission, tg-toggle-comment, permission="modify_"+commentModel)
|
||||
textarea(placeholder="Write here a new commet", ng-model="commentModel.comment")
|
||||
a.button.button-green(href="", title="Comment") Comment
|
||||
textarea(placeholder="Write here a new commet", ng-model="commentModel.comment", tg-markitup)
|
||||
a.button.button-green.save-comment(href="", title="Comment") Comment
|
||||
div.comment-list
|
||||
//common.coffee
|
||||
div.comment-single(tg-change, mode="comment", ng-model="comment", ng-repeat="comment in comments")
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
margin-bottom: .5rem;
|
||||
min-height: inherit;
|
||||
}
|
||||
a {
|
||||
a.save-comment {
|
||||
color: $white;
|
||||
float: right;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue