diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-30 13:55:25 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-20 18:24:42 +0100 |
commit | d6e89a9a28986a57010a31701faa7d1981b5a5c1 (patch) | |
tree | fbc7755a22ed2236f02b88b8595c429665464a0a /apps/files/templates | |
parent | 7c68025010f3aeb91b84663fb3239ae0d038b4e2 (diff) | |
download | nextcloud-server-d6e89a9a28986a57010a31701faa7d1981b5a5c1.tar.gz nextcloud-server-d6e89a9a28986a57010a31701faa7d1981b5a5c1.zip |
store the share owner in a data-attribute instead of a separate span
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/part.list.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 9769affc70f..8a7a1e370eb 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -17,7 +17,13 @@ $totalsize = 0; ?> data-mime="<?php p($file['mimetype'])?>" data-size="<?php p($file['size']);?>" data-etag="<?php p($file['etag']);?>" - data-permissions="<?php p($file['permissions']); ?>"> + data-permissions="<?php p($file['permissions']); ?>" + + <?php if(isset($file['displayname_owner'])): ?> + data-share-owner="<?php p($file['displayname_owner']) ?>" + <?php endif; ?> + > + <?php if(isset($file['isPreviewAvailable']) and $file['isPreviewAvailable']): ?> <td class="filename svg preview-icon" <?php else: ?> @@ -36,15 +42,13 @@ $totalsize = 0; ?> </span> <span class="uploadtext" currentUploads="0"> </span> + </a> <?php else: ?> <a class="name" href="<?php p(rtrim($_['downloadURL'],'/').'/'.trim($directory,'/').'/'.$name); ?>"> <label class="filetext" title="" for="select-<?php p($file['fileid']); ?>"></label> <span class="nametext"><?php print_unescaped(htmlspecialchars($file['basename']));?><span class='extension'><?php p($file['extension']);?></span></span> - <?php endif; ?> - <?php if(isset($file['displayname_owner'])): ?> - <span class="share-info"><?php p($l->t('shared by %s', array($file['displayname_owner']))) ?></span> - <?php endif; ?> </a> + <?php endif; ?> </td> <td class="filesize" style="color:rgb(<?php p($simple_size_color.','.$simple_size_color.','.$simple_size_color) ?>)"> |