@**
* Yona, 21st Century Project Hosting SW
*
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
@import utils.MenuType._
@(title: String, currentPage: com.avaje.ebean.Page[Attachment])
@import utils.JodaDateUtil._
@import utils.FileUtil._
@import utils.RouteUtil._
@preview(attachment: Attachment) = @{
var previewFile = ""
if(attachment.mimeType.startsWith("image/")){
previewFile = "";
}
Html(previewFile)
}
@link(attachment: Attachment) = @{
val url = getUrl(attachment.containerType, attachment.containerId)
if(url != null){
Html("" + url + "")
} else {
""
}
}
@siteLayout(Messages("user.files"), SITE_HOME) {