@( user: services.user.User, usedDiskspace: Long, myDocCount: Int, rows: services.Page[(services.generated.tables.records.DocumentRecord, services.generated.tables.records.SharingPolicyRecord, Option[services.contribution.Contribution], Long)], sortBy: String, sortOrder: services.SortOrder, pageSize: Option[Int] )(implicit request: RequestHeader, messages: Messages, webJarsUtil: org.webjars.play.WebJarsUtil) @accessLevel(lvl: String) = { @if(lvl == "READ") { } else { @if(lvl == "WRITE") { } else { @if(lvl == "ADMIN") { }}} } @_layout(user, usedDiskspace, myDocCount, rows.total, "shared", 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"), "owner" -> messages("my.table.header.owner"), "shared_by" -> messages("my.table.header.shared_by"), "access_level" -> messages("my.table.header.access_level"), "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(java.text.NumberFormat.getIntegerInstance()) { decimalFormat => @for((doc, sharingPolicy, lastEdit, annotationCount) <- rows.items) { } }
@doc.getAuthor @doc.getTitle @doc.getLanguage @doc.getDateFreeform @doc.getOwner @sharingPolicy.getSharedBy @accessLevel(sharingPolicy.getAccessLevel) @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 ) }