2013-12-09 12:32:28 +00:00
< div id = " app-navigation " >
2015-04-08 17:25:28 +00:00
< ul class = " with-icon " >
2017-09-17 16:12:15 +00: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 15:16:32 +00: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 11:06:28 +00:00
< li id = " quota " class = " pinned <?php p( $pinned ===0?'first-pinned ':'') ?><?php
2017-06-09 13:41:06 +00:00
if ( $_ [ 'quota' ] !== \OCP\Files\FileInfo :: SPACE_UNLIMITED ) {
2017-06-09 15:24:10 +00:00
?> has-tooltip" title="<?php p($_['usage_relative'] . '%');
} ?> ">
2018-05-03 08:31:56 +00:00
< a href = " # " class = " icon-quota svg " >
2017-06-09 15:24:10 +00: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 13:41:06 +00:00
< div class = " quota-container " >
2017-09-27 14:44:56 +00:00
< progress value = " <?php p( $_['usage_relative'] ); ?> " max = " 100 "
2017-10-04 15:26:56 +00:00
< ? php if ( $_ [ 'usage_relative' ] > 80 ) : ?> class="warn" <?php endif; ?>></progress>
2017-06-09 13:41:06 +00:00
</ div >
</ a >
</ li >
2013-12-09 12:32:28 +00:00
</ ul >
< div id = " app-settings " >
< div id = " app-settings-header " >
2014-12-17 11:20:38 +00:00
< button class = " settings-button " data - apps - slide - toggle = " #app-settings-content " >
2015-06-17 12:37:58 +00:00
< ? php p ( $l -> t ( 'Settings' )); ?>
2014-12-17 11:20:38 +00:00
</ button >
2013-12-09 12:32:28 +00:00
</ div >
< div id = " app-settings-content " >
2016-04-12 15:10:09 +00: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 08:34:24 +00:00
< input id = " webdavurl " type = " text " readonly = " readonly " value = " <?php p( $_['webdavurl'] ); ?> " />
2017-10-19 10:16:04 +00: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 12:32:28 +00:00
</ div >
</ div >
</ div >