diff options
author | Matthias Held <ilovemilk@wusa.io> | 2018-07-24 18:21:56 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-07-24 18:21:56 +0300 |
commit | bd4e9e0fb268438e8f21369ad971613823e41879 (patch) | |
tree | 7be80df8138e4050f579e99a1032afc648eda87f /templates | |
parent | 3fbaae5aa2026ee893f7b4a9b9fc53ca9ff35b76 (diff) |
Add storage scanner
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.php | 18 | ||||
-rw-r--r-- | templates/scan.php | 52 |
2 files changed, 69 insertions, 1 deletions
diff --git a/templates/index.php b/templates/index.php index d5800e0..53bd8e9 100644 --- a/templates/index.php +++ b/templates/index.php @@ -23,8 +23,24 @@ script('ransomware_detection', 'vendor/font-awesome/fontawesome-all'); style('ransomware_detection', 'style'); ?> <div id="app"> + <div id="app-navigation"> + <ul> + <li class="active"> + <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.index', [])); ?>"> + <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/history.svg')); ?>"> + <span>Monitoring</span> + </a> + </li> + <li> + <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.scan', [])); ?>"> + <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/search.svg')); ?>"> + <span>Scan files</span> + </a> + </li> + </ul> + </div> <div id="app-content"> - <div id="app-content-ransomware-detection"> + <div id="app-content-ransomware-detection-filelist"> <!-- Tables --> </div> </div> diff --git a/templates/scan.php b/templates/scan.php new file mode 100644 index 0000000..5a365a5 --- /dev/null +++ b/templates/scan.php @@ -0,0 +1,52 @@ +<?php +/** + * @copyright Copyright (c) 2018 Matthias Held <matthias.held@uni-konstanz.de> + * @author Matthias Held <matthias.held@uni-konstanz.de> + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ +script('ransomware_detection', 'app'); +script('ransomware_detection', 'scan'); +script('ransomware_detection', 'vendor/font-awesome/fontawesome-all'); +style('ransomware_detection', 'style'); +?> +<div id="app"> + <div id="app-navigation"> + <ul> + <li> + <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.index', [])); ?>"> + <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/history.svg')); ?>"> + <span>Monitoring</span> + </a> + </li> + <li class="active"> + <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.scan', [])); ?>"> + <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/search.svg')); ?>"> + <span>Scan files</span> + </a> + </li> + </ul> + </div> + <div id="app-content"> + <div id="app-content-ransomware-detection-scan"> + <!-- Tables --> + <div class="section" id="section-loading"> + <p class="text-center"> + <div class="icon-loading-dark"></div> + </p> + </div> + </div> + </div> +</div> |