@(
user: services.user.User,
usedDiskspace: Long,
rows: services.Page[(services.generated.tables.records.DocumentRecord, Option[services.contribution.Contribution], Long)],
sharedWithMeCount: Int,
sortBy: String,
sortOrder: services.SortOrder,
pageSize: Option[Int]
)(implicit request: RequestHeader, messages: Messages, webJarsUtil: org.webjars.play.WebJarsUtil)
@_layout(user, usedDiskspace, rows.total, sharedWithMeCount, "my", pageSize) {
@views.html.tableHeader(Seq(
"author" -> messages("common.document.author"),
"title" -> messages("common.document.title"),
"language" -> messages("common.document.language"),
"date_freeform" -> messages("common.document.date"),
"uploaded_at" -> messages("my.table.header.uploaded"),
"last_modified_at" -> messages("my.table.header.last_edit"),
"last_modified_by" -> messages("my.table.header.by"),
"annotations" -> messages("common.annotations"),
"is_public" -> messages("my.table.header.public")
), Some(sortBy), Some(sortOrder))
@defining((new java.text.SimpleDateFormat("d MMM yyyy"), java.text.NumberFormat.getIntegerInstance())) { case (dateFormat, decimalFormat) =>
@for((doc, lastEdit, annotationCount) <- rows.items) {
| @doc.getAuthor |
@doc.getTitle |
@doc.getLanguage |
@doc.getDateFreeform |
@dateFormat.format(doc.getUploadedAt) |
@lastEdit match {
case Some(edit) if (edit.madeAt.plusMinutes(11) isAfter org.joda.time.DateTime.now) => {
}
case _ => { }
}
|
@lastEdit.map(_.madeBy) |
@decimalFormat.format(annotationCount) |
@if(doc.getPublicVisibility == "PUBLIC" || doc.getPublicVisibility == "WITH_LINK"){} |
}
}
@views.html.pagination(controllers.my.routes.MyRecogitoController.index(user.username.toLowerCase, None, None, None, None, None).url, rows)
@helper.javascriptRouter("jsRoutes")(
controllers.document.annotation.routes.javascript.AnnotationController.showAnnotationView,
controllers.document.settings.routes.javascript.SettingsController.deleteDocument
)
}