[#setting url_escaping_charset="UTF-8"]
[#if this.request.parameterMap['selectMedia']?exists] [/#if] [#if this.path?exists] [/#if]

[#assign index = 0] [#list this.medias as media] [#assign name = media.filename] [#if name?contains("/")] [#assign name = name?substring(name?last_index_of("/") + 1)] [/#if] [#if name?length gt 17] [#assign name = name?substring(0,13)] [#assign name = name?right_pad(17, ".")] [/#if] [#assign index = index + 1 ] [#assign mediaStatusClass = ""] [#if this.selectMedia && !this.develop] [#assign mediaStatusClass = "mediaStatus${media.metaData.activationStatus}"] [/#if] [#assign selectMediaClass = ""] [#if this.selectMedia] [#assign selectMediaClass = "selectMedia"] [/#if]
- ${this.msgs.get('media.edit')}
  [#if media.usedInWebPages?size = 0] ${this.msgs.get('media.nopages')} [#else] ${this.msgs.get('media.pages')} (${media.usedInWebPages?size})
  [/#if]
  [#assign url = media.previewUrl] [#if !url?contains('://') ] [#assign url = "${this.request.contextPath}${media.previewUrl}"] [/#if] [#assign thumbnailPath = media.thumbnailUrl] [#if thumbnailPath == ''] [#assign thumbnailPath = "/.resources/media/icons/thumb-broken.png"] [/#if]

  #### ${media.title!""}

  [#list media.mediaInfo?keys as key] ${this.getMessage("media.info.${key}", media.mediaInfo[key])}
  [/#list]
  [#if media.mediaInfo??]
  ${media.mediaInfo['media_extension']!} [#if media.mediaInfo['media_width']?? && media.mediaInfo['media_height']??] ${media.mediaInfo['media_width']}x${media.mediaInfo['media_height']} [/#if]
  [/#if] [#if this.selectMedia]
  [#if this.develop || this.singleInstance || media.metaData.activationStatus = 2] ${this.msgs.get('media.select')} [#else] ${this.msgs.get('media.notpublished')} [/#if]
  [/#if] ${name}
[/#list]