Remove controls for file lists that don't need it

Remove controls from sharing overview and favorite file lists which
don't display paths.
This commit is contained in:
Vincent Petry 2015-10-13 11:36:24 +02:00
parent 1cb4f1080a
commit ecb10db039
4 changed files with 9 additions and 9 deletions

View File

@ -35,13 +35,15 @@
}
/* FILE TABLE */
#filestable {
position: relative;
top: 44px;
width: 100%;
}
#filestable.has-controls {
top: 44px;
}
/* make sure there's enough room for the file actions */
#body-user #filestable {
min-width: 688px; /* 768 (mobile break) - 80 (nav width) */

View File

@ -226,7 +226,11 @@
}
this.breadcrumb = new OCA.Files.BreadCrumb(breadcrumbOptions);
this.$el.find('#controls').prepend(this.breadcrumb.$el);
var $controls = this.$el.find('#controls');
if ($controls.length > 0) {
$controls.prepend(this.breadcrumb.$el);
this.$table.addClass('has-controls');
}
this._renderNewButton();

View File

@ -1,6 +1,3 @@
<div id="controls">
<div id="file_action_panel"></div>
</div>
<div id='notification'></div>
<div id="emptycontent" class="hidden">

View File

@ -1,7 +1,4 @@
<?php /** @var $l OC_L10N */ ?>
<div id="controls">
<div id="file_action_panel"></div>
</div>
<div id='notification'></div>
<div id="emptycontent" class="hidden"></div>