@** * Yona, 21st Century Project Hosting SW * * Copyright Yona & Yobi Authors & NAVER Corp. & NAVER LABS Corp. * https://yona.io **@ @import models.enumeration.ResourceType @(comment:Comment, action:String, contents:String, isAllowedUpdate:Boolean) @import utils.AccessControl._ @files = @{ if(comment.isInstanceOf[IssueComment]) { AttachmentApp.getFileList(ResourceType.ISSUE_COMMENT, comment.id) } else { AttachmentApp.getFileList(ResourceType.NONISSUE_COMMENT, comment.id) } } @resourceType = @{ if(comment.isInstanceOf[IssueComment]) { ResourceType.ISSUE_COMMENT } else { ResourceType.NONISSUE_COMMENT } }
@common.editor("contents-" + comment.id, contents,"", "update-comment-body")
@Messages("common.attach.dropFilesHere")
@if(comment.isAuthoredBy(UserApp.currentUser())){ } @if(isAllowedUpdate) { }
@for(file <- files.get("attachments")) { @attachmentFile(file, resourceType, comment.id) }