2013-12-09 16:32:28 +04:00
< div id = " app-navigation " >
2015-04-08 20:25:28 +03:00
< ul class = " with-icon " >
2017-09-17 19:12:15 +03:00
< ? php $pinned = 0 ?>
< ? php foreach ( $_ [ 'navigationItems' ] as $item ) {
strpos ( $item [ 'classes' ], 'pinned' ) !== false ? $pinned ++ : '' ;
?>
< li data - id = " <?php p( $item['id'] ) ?> " class = " nav-<?php p( $item['id'] ) ?> <?php p( $item['classes'] ) ?> <?php p( $pinned ===1?'first-pinned':'') ?> " >
2017-09-17 18:16:32 +03:00
< a href = " <?php p(isset( $item['href'] ) ? $item['href'] : '#') ?> "
class = " nav-icon-<?php p( $item['icon'] !== '' ? $item['icon'] : $item['id'] ) ?> svg " >
< ? php p ( $item [ 'name' ]); ?>
</ a >
</ li >
< ? php } ?>
2017-12-14 14:06:28 +03:00
< li id = " quota " class = " pinned <?php p( $pinned ===0?'first-pinned ':'') ?><?php
2017-06-09 16:41:06 +03:00
if ( $_ [ 'quota' ] !== \OCP\Files\FileInfo :: SPACE_UNLIMITED ) {
2017-06-09 18:24:10 +03:00
?> has-tooltip" title="<?php p($_['usage_relative'] . '%');
} ?> ">
2017-06-09 16:41:06 +03:00
< a href = " # " class = " nav-icon-quota svg " >
2017-06-09 18:24:10 +03:00
< p id = " quotatext " >< ? php
if ( $_ [ 'quota' ] !== \OCP\Files\FileInfo :: SPACE_UNLIMITED ) {
p ( $l -> t ( '%s of %s used' , [ $_ [ 'usage' ], $_ [ 'total_space' ]]));
} else {
p ( $l -> t ( '%s used' , [ $_ [ 'usage' ]]));
} ?> </p>
2017-06-09 16:41:06 +03:00
< div class = " quota-container " >
2017-09-27 17:44:56 +03:00
< progress value = " <?php p( $_['usage_relative'] ); ?> " max = " 100 "
2017-10-04 18:26:56 +03:00
< ? php if ( $_ [ 'usage_relative' ] > 80 ) : ?> class="warn" <?php endif; ?>></progress>
2017-06-09 16:41:06 +03:00
</ div >
</ a >
</ li >
2013-12-09 16:32:28 +04:00
</ ul >
< div id = " app-settings " >
< div id = " app-settings-header " >
2014-12-17 14:20:38 +03:00
< button class = " settings-button " data - apps - slide - toggle = " #app-settings-content " >
2015-06-17 15:37:58 +03:00
< ? php p ( $l -> t ( 'Settings' )); ?>
2014-12-17 14:20:38 +03:00
</ button >
2013-12-09 16:32:28 +04:00
</ div >
< div id = " app-settings-content " >
2016-04-12 18:10:09 +03:00
< div id = " files-setting-showhidden " >
< input class = " checkbox " id = " showhiddenfilesToggle " checked = " checked " type = " checkbox " >
< label for = " showhiddenfilesToggle " >< ? php p ( $l -> t ( 'Show hidden files' )); ?> </label>
</ div >
< label for = " webdavurl " >< ? php p ( $l -> t ( 'WebDAV' )); ?> </label>
2018-04-05 11:34:24 +03:00
< input id = " webdavurl " type = " text " readonly = " readonly " value = " <?php p( $_['webdavurl'] ); ?> " />
2017-10-19 13:16:04 +03:00
< em >< ? php print_unescaped ( $l -> t ( 'Use this address to <a href="%s" target="_blank" rel="noreferrer noopener">access your Files via WebDAV</a>' , array ( link_to_docs ( 'user-webdav' )))); ?> </em>
2013-12-09 16:32:28 +04:00
</ div >
</ div >
</ div >