@** * 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) {
@views.html.common.mySeriesMenuTab(TAB_MY_FILES)
Preview
Filename
Size
Download
Date
Location
@for(attachment <- currentPage.getList){
@humanReadableByteCount(attachment.size, true)
@getDateString(attachment.createdDate, "yyyy-MM-dd h:mm a")
@link(attachment)
}
}