PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/apps/files/templates/list.php

https://gitlab.com/Red54/core
PHP | 117 lines | 113 code | 3 blank | 1 comment | 2 complexity | c21d49a4987763c4643bcf765544337b MD5 | raw file
  1. <div id="controls">
  2. <div class="actions creatable hidden">
  3. <?php if(!isset($_['dirToken'])):?>
  4. <div id="new" class="button">
  5. <a><?php p($l->t('New'));?></a>
  6. <ul>
  7. <li class="icon-filetype-text svg"
  8. data-type="file" data-newname="<?php p($l->t('New text file')) ?>.txt">
  9. <p><?php p($l->t('Text file'));?></p>
  10. </li>
  11. <li class="icon-filetype-folder svg"
  12. data-type="folder" data-newname="<?php p($l->t('New folder')) ?>">
  13. <p><?php p($l->t('Folder'));?></p>
  14. </li>
  15. </ul>
  16. </div>
  17. <?php endif;?>
  18. <?php /* Note: the template attributes are here only for the public page. These are normally loaded
  19. through ajax instead (updateStorageStatistics).
  20. */ ?>
  21. <div id="upload" class="button"
  22. title="<?php isset($_['uploadMaxHumanFilesize']) ? p($l->t('Upload (max. %s)', array($_['uploadMaxHumanFilesize']))) : '' ?>">
  23. <input type="hidden" id="max_upload" name="MAX_FILE_SIZE" value="<?php isset($_['uploadMaxFilesize']) ? p($_['uploadMaxFilesize']) : '' ?>">
  24. <input type="hidden" id="upload_limit" value="<?php isset($_['uploadLimit']) ? p($_['uploadLimit']) : '' ?>">
  25. <input type="hidden" id="free_space" value="<?php isset($_['freeSpace']) ? p($_['freeSpace']) : '' ?>">
  26. <?php if(isset($_['dirToken'])):?>
  27. <input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
  28. <input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" />
  29. <?php endif;?>
  30. <input type="hidden" class="max_human_file_size"
  31. value="(max <?php isset($_['uploadMaxHumanFilesize']) ? p($_['uploadMaxHumanFilesize']) : ''; ?>)">
  32. <input type="file" id="file_upload_start" name='files[]'
  33. data-url="<?php print_unescaped(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" />
  34. <label for="file_upload_start" class="svg icon-upload">
  35. <span class="hidden-visually"><?php p($l->t('Upload'))?></span>
  36. </label>
  37. </div>
  38. <div id="uploadprogresswrapper">
  39. <div id="uploadprogressbar"></div>
  40. <button class="stop icon-close" style="display:none">
  41. <span class="hidden-visually">
  42. <?php p($l->t('Cancel upload'))?>
  43. </span>
  44. </button>
  45. </div>
  46. </div>
  47. <div id="file_action_panel"></div>
  48. <div class="notCreatable notPublic hidden">
  49. <?php p($l->t('You don’t have permission to upload or create files here'))?>
  50. </div>
  51. <input type="hidden" name="permissions" value="" id="permissions">
  52. </div>
  53. <div id="emptycontent" class="hidden">
  54. <div class="icon-folder"></div>
  55. <h2><?php p($l->t('No files in here')); ?></h2>
  56. <p class="uploadmessage hidden"><?php p($l->t('Upload some content or sync with your devices!')); ?></p>
  57. </div>
  58. <div class="nofilterresults emptycontent hidden">
  59. <div class="icon-search"></div>
  60. <h2><?php p($l->t('No entries found in this folder')); ?></h2>
  61. <p></p>
  62. </div>
  63. <table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="36" data-preview-y="36">
  64. <thead>
  65. <tr>
  66. <th id='headerName' class="hidden column-name">
  67. <div id="headerName-container">
  68. <input type="checkbox" id="select_all_files" class="select-all"/>
  69. <label for="select_all_files">
  70. <span class="hidden-visually"><?php p($l->t('Select all'))?></span>
  71. </label>
  72. <a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a>
  73. <span id="selectedActionsList" class="selectedActions">
  74. <a href="" class="download">
  75. <img class="svg" alt=""
  76. src="<?php print_unescaped(OCP\image_path("core", "actions/download.svg")); ?>" />
  77. <?php p($l->t('Download'))?>
  78. </a>
  79. </span>
  80. </div>
  81. </th>
  82. <th id="headerSize" class="hidden column-size">
  83. <a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
  84. </th>
  85. <th id="headerDate" class="hidden column-mtime">
  86. <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a>
  87. <span class="selectedActions"><a href="" class="delete-selected">
  88. <?php p($l->t('Delete'))?>
  89. <img class="svg" alt=""
  90. src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
  91. </a></span>
  92. </th>
  93. </tr>
  94. </thead>
  95. <tbody id="fileList">
  96. </tbody>
  97. <tfoot>
  98. </tfoot>
  99. </table>
  100. <input type="hidden" name="dir" id="dir" value="" />
  101. <div id="editor"></div><!-- FIXME Do not use this div in your app! It is deprecated and will be removed in the future! -->
  102. <div id="uploadsize-message" title="<?php p($l->t('Upload too large'))?>">
  103. <p>
  104. <?php p($l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.'));?>
  105. </p>
  106. </div>
  107. <div id="scanning-message">
  108. <h3>
  109. <?php p($l->t('Files are being scanned, please wait.'));?> <span id='scan-count'></span>
  110. </h3>
  111. <p>
  112. <?php p($l->t('Currently scanning'));?> <span id='scan-current'></span>
  113. </p>
  114. </div>