aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/templates
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-01-25 16:50:27 +0100
committerGitHub <noreply@github.com>2024-01-25 16:50:27 +0100
commita2d795ffe2899bbe0e3735186bbe7fdb0f5ee0e4 (patch)
treeb7b77bd7c468433e8755e177f305e065c0e937e5 /apps/files/templates
parent342d7534744d508ad5e0da254e85ebdd42f60ddb (diff)
parent92d5fbb15177f5c858914913d6b336362ac91777 (diff)
downloadnextcloud-server-a2d795ffe2899bbe0e3735186bbe7fdb0f5ee0e4.tar.gz
nextcloud-server-a2d795ffe2899bbe0e3735186bbe7fdb0f5ee0e4.zip
Merge pull request #43104 from nextcloud/chore/cleanup
Diffstat (limited to 'apps/files/templates')
-rw-r--r--apps/files/templates/appnavigation.php93
-rw-r--r--apps/files/templates/fileexists.html31
-rw-r--r--apps/files/templates/simplelist.php39
3 files changed, 0 insertions, 163 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
deleted file mode 100644
index d2b57b03eca..00000000000
--- a/apps/files/templates/appnavigation.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<div id="app-navigation-files" role="navigation"></div>
-<div class="hidden">
- <ul class="with-icon" tabindex="0">
- <?php
- $pinned = 0;
- foreach ($_['navigationItems'] as $item) {
- $pinned = NavigationListElements($item, $l, $pinned);
- }
- ?>
- </ul>
-</div>
-
-
-<?php
-
-/**
- * Prints the HTML for a single Entry.
- *
- * @param $item The item to be added
- * @param $l Translator
- * @param $pinned IntegerValue to count the pinned entries at the bottom
- *
- * @return int Returns the pinned value
- */
-function NavigationListElements($item, $l, $pinned) {
- strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : ''; ?>
- <li
- data-id="<?php p($item['id']) ?>"
- <?php if (isset($item['dir'])) { ?> data-dir="<?php p($item['dir']); ?>" <?php } ?>
- <?php if (isset($item['view'])) { ?> data-view="<?php p($item['view']); ?>" <?php } ?>
- <?php if (isset($item['expandedState'])) { ?> data-expandedstate="<?php p($item['expandedState']); ?>" <?php } ?>
- class="nav-<?php p($item['id']) ?>
- <?php if (isset($item['classes'])) {
- p($item['classes']);
- } ?>
- <?php p($pinned === 1 ? 'first-pinned' : '') ?>
- <?php if (isset($item['defaultExpandedState']) && $item['defaultExpandedState']) { ?> open<?php } ?>"
- <?php if (isset($item['folderPosition'])) { ?> folderposition="<?php p($item['folderPosition']); ?>" <?php } ?>>
-
- <a href="<?php p($item['href'] ?? '#') ?>"
- class="nav-icon-<?php p(isset($item['icon']) && $item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg"><?php p($item['name']); ?></a>
-
-
- <?php
- NavigationElementMenu($item);
- if (isset($item['sublist'])) {
- ?>
- <button class="collapse app-navigation-noclose" aria-expanded="<?= !empty($item['defaultExpandedState']) ? 'true' : 'false' ?>"
- aria-label="<?php p($l->t('Toggle %1$s sublist', $item['name'])) ?>"
- <?php if (sizeof($item['sublist']) == 0) { ?> style="display: none" <?php } ?>>
- </button>
- <ul id="sublist-<?php p($item['id']); ?>">
- <?php
- foreach ($item['sublist'] as $item) {
- $pinned = NavigationListElements($item, $l, $pinned);
- } ?>
- </ul>
- <?php
- } ?>
- </li>
-
-
- <?php
- return $pinned;
-}
-
-/**
- * Prints the HTML for a dotmenu.
- *
- * @param $item The item to be added
- *
- * @return void
- */
-function NavigationElementMenu($item) {
- if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') {
- ?>
- <div id="dotmenu-<?php p($item['id']); ?>"
- class="app-navigation-entry-utils" <?php if (isset($item['enableMenuButton']) && $item['enableMenuButton'] === 0) { ?> style="display: none"<?php } ?>>
- <ul>
- <li class="app-navigation-entry-utils-menu-button svg">
- <button id="dotmenu-button-<?php p($item['id']) ?>"></button>
- </li>
- </ul>
- </div>
- <div id="dotmenu-content-<?php p($item['id']) ?>"
- class="app-navigation-entry-menu">
- <ul>
-
- </ul>
- </div>
- <?php
- }
-}
diff --git a/apps/files/templates/fileexists.html b/apps/files/templates/fileexists.html
deleted file mode 100644
index e3513237d2b..00000000000
--- a/apps/files/templates/fileexists.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div id="{dialog_name}" title="{title}" class="fileexists">
- <span class="why">{why}<!-- Which files do you want to keep --></span><br/>
- <span class="what">{what}<!-- If you select both versions, the copied file will have a number added to its name. --></span><br/>
- <br/>
- <table>
- <th><input id="checkbox-allnewfiles" class="allnewfiles checkbox" type="checkbox" /><label for="checkbox-allnewfiles">{allnewfiles}<span class="count"></span></label></th>
- <th><input id="checkbox-allexistingfiles" class="allexistingfiles checkbox" type="checkbox" /><label for="checkbox-allexistingfiles">{allexistingfiles}<span class="count"></span></label></th>
- </table>
- <div class="conflicts">
- <div class="template">
- <div class="filename"></div>
- <div class="replacement">
- <input type="checkbox" class="checkbox u-left"/>
- <label>
- <span class="svg icon"></span>
- <div class="mtime"></div>
- <div class="size"></div>
- </label>
- </div>
- <div class="original">
- <input type="checkbox" class="checkbox u-left" />
- <label>
- <span class="svg icon"></span>
- <div class="mtime"></div>
- <div class="size"></div>
- <div class="message"></div>
- </label>
- </div>
- </div>
- </div>
-</div>
diff --git a/apps/files/templates/simplelist.php b/apps/files/templates/simplelist.php
deleted file mode 100644
index fc0a9fb38c9..00000000000
--- a/apps/files/templates/simplelist.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="emptyfilelist emptycontent hidden">
- <div class="icon-starred"></div>
- <h2><?php p($l->t('No favorites yet')); ?></h2>
- <p><?php p($l->t('Files and folders you mark as favorite will show up here')); ?></p>
-</div>
-
-<div class="nofilterresults emptycontent hidden">
- <div class="icon-search"></div>
- <h2><?php p($l->t('No entries found in this folder')); ?></h2>
- <p></p>
-</div>
-<table class="files-filestable list-container <?php p($_['showgridview'] ? 'view-grid' : '') ?>">
- <thead>
- <tr>
- <th class="hidden column-name">
- <div class="column-name-container">
- <a class="name sort columntitle" onclick="event.preventDefault()" href="#" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a>
- </div>
- </th>
- <th class="hidden column-size">
- <a class="size sort columntitle" onclick="event.preventDefault()" href="#" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
- </th>
- <th class="hidden column-mtime">
- <a class="columntitle" onclick="event.preventDefault()" href="#" data-sort="mtime"><span><?php p($l->t('Modified')); ?></span><span class="sort-indicator"></span></a>
- <span class="selectedActions">
- <a onclick="event.preventDefault()" href="#" class="delete-selected">
- <img class="svg" alt=""
- src="<?php print_unescaped(OCP\Template::image_path("core", "actions/delete.svg")); ?>" />
- <?php p($l->t('Delete'))?>
- </a>
- </span>
- </th>
- </tr>
- </thead>
- <tbody class="files-fileList">
- </tbody>
- <tfoot>
- </tfoot>
-</table>