@(metadata: List[models.Metadata], toDelete: Boolean)(implicit user: Option[models.User]) @import java.net.URL @import play.api.libs.json.JsString @import play.api.libs.json.JsObject @import play.api.libs.json.JsValue @import play.api.libs.json.JsArray @import api.Permission @if(play.api.Play.current.plugin[services.StagingAreaPlugin].isDefined) { } @defining(1) { counter: Int =>

Metadata

@for((m, i) <- metadata.zipWithIndex) { @m.content match { case o: JsObject => { @if(o.fields.length == 0) { } @if(o.fields.length == 1) { @for((key, value) <- o.fields) { } } @if(o.fields.length > 1){ @for((key, value) <- o.fields.headOption.toList) { } } } case _ => { @m.content } } }
Name Value Last Modified
No field content found
@key @printContent(m, "content", i, true) @printContent(m, "header", i, true) @if(toDelete && Permission.checkPermission(Permission.DeleteMetadata, ResourceRef(ResourceRef.metadata, m.id))) { } @****************************** This dropdown can be used to easily expand the functions offered by each row ******************************@
@key @printContent(m, "content", i, true) @printContent(m, "header", i, true) @if(toDelete && Permission.checkPermission(Permission.DeleteMetadata, ResourceRef(ResourceRef.metadata, m.id))) { }
@for((m, i) <- metadata.zipWithIndex) {
@printContent(m, "content", i)
}
} @if(metadata.size == 0) {

No metadata available for this resource

}