@@ 537-545 (lines=9) @@ | ||
534 | <# } #> |
|
535 | ||
536 | <# if ( ! data.uploading && data.can.remove ) { #> |
|
537 | <?php if ( MEDIA_TRASH ): ?> |
|
538 | <# if ( 'trash' === data.status ) { #> |
|
539 | <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> |
|
540 | <# } else { #> |
|
541 | <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button> |
|
542 | <# } #> |
|
543 | <?php else: ?> |
|
544 | <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> |
|
545 | <?php endif; ?> |
|
546 | <# } #> |
|
547 | ||
548 | <div class="compat-meta"> |
|
@@ 434-442 (lines=9) @@ | ||
431 | <a href="post.php?post={{ data.id }}&action=edit"><?php _e( 'Edit more details' ); ?></a> |
|
432 | <# } #> |
|
433 | <# if ( ! data.uploading && data.can.remove ) { #> | |
|
434 | <?php if ( MEDIA_TRASH ): ?> |
|
435 | <# if ( 'trash' === data.status ) { #> |
|
436 | <button type="button" class="button-link untrash-attachment"><?php _e( 'Untrash' ); ?></button> |
|
437 | <# } else { #> |
|
438 | <button type="button" class="button-link trash-attachment"><?php _ex( 'Trash', 'verb' ); ?></button> |
|
439 | <# } #> |
|
440 | <?php else: ?> |
|
441 | <button type="button" class="button-link delete-attachment"><?php _e( 'Delete Permanently' ); ?></button> |
|
442 | <?php endif; ?> |
|
443 | <# } #> |
|
444 | </div> |
|
445 |