File name
        Commit message
        Commit date
    File name
        Commit message
        Commit date
    File name
        Commit message
        Commit date
    File name
        Commit message
        Commit date
    File name
        Commit message
        Commit date
    @**
* 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
    }
}
<div id="comment-editform-@comment.id" class="comment-update-form">
    <form action="@action/@comment.id" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="@comment.id">
        <div class="write-comment-box">
            <div class="write-comment-wrap">
                @common.editor("contents-" + comment.id, contents,"", "update-comment-body")
                <div class="upload-drop-here">
                    <div class="msg-wrap">
                        <div class="msg">@Messages("common.attach.dropFilesHere")</div>
                    </div>
                </div>
                <div class="right-txt comment-update-button upload-button-line">
                    <span class="file-upload">
                        <label for="upload-@comment.id" class="file-upload__label ybtn">@Messages("button.upload")</label>
                        <input id="upload-@comment.id" class="file-upload__input" type="file" name="filePath" multiple>
                    </span>
                    @if(comment.isAuthoredBy(UserApp.currentUser())){
                    <span class="send-notification-check" data-toggle='popover' data-trigger="hover" data-placement="top" data-content="@Messages("notification.send.mail.warning")">
                        <label class="checkbox inline">
                            <input type="checkbox" name="notificationMail" value="yes" checked>
                            <strong>@Messages("notification.send.mail")</strong>
                        </label>
                    </span>
                    }
                    <button type="button" class="ybtn ybtn-cancel" data-comment-id="@comment.id">@Messages("button.cancel")</button>
                    @if(isAllowedUpdate) {
                        <button type="submit" class="ybtn ybtn-info">@Messages("button.save")</button>
                    }
                </div>
            </div>
            <input type="hidden" name="temporaryUploadFiles" class="temporaryUploadFiles" value="">
            <div class="preview-@comment.id"></div>
            <div class="attachment-files">
            @for(file <- files.get("attachments")) {
                @attachmentFile(file, resourceType, comment.id)
            }
            </div>
            <div id="upload-@comment.id" data-resourceType="@resourceType" data-resourceId="@comment.id"></div>
        </div>
    </form>
</div>