Merge pull request #4671 from owncloud/emptycontent

centers text message in empty-content page (files and files_trashbin apps)
This commit is contained in:
Bernhard Posselt 2013-09-01 17:47:55 -07:00
commit f038cb9aea
5 changed files with 12 additions and 11 deletions

View File

@ -68,12 +68,6 @@
/* FILE TABLE */
#emptyfolder {
position:absolute;
margin:10em 0 0 10em;
font-size:1.5em; font-weight:bold;
color:#888; text-shadow:#fff 0 1px 0;
}
#filestable { position: relative; top:37px; width:100%; }
tbody tr { background-color:#fff; height:2.5em; }
tbody tr:hover, tbody tr:active {

View File

@ -147,7 +147,7 @@ var FileList={
$('tr').filterAttr('data-file',name).remove();
FileList.updateFileSummary();
if($('tr[data-file]').length==0){
$('#emptyfolder').show();
$('#emptycontent').show();
}
},
insertElement:function(name,type,element){
@ -177,7 +177,7 @@ var FileList={
}else{
$('#fileList').append(element);
}
$('#emptyfolder').hide();
$('#emptycontent').hide();
FileList.updateFileSummary();
},
loadingDone:function(name, id){

View File

@ -56,7 +56,7 @@
</div>
<?php if (isset($_['files']) and $_['isCreatable'] and count($_['files'])==0):?>
<div id="emptyfolder"><?php p($l->t('Nothing in here. Upload something!'))?></div>
<div id="emptycontent"><?php p($l->t('Nothing in here. Upload something!'))?></div>
<?php endif; ?>
<table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="36" data-preview-y="36">

View File

@ -6,7 +6,7 @@
<div id='notification'></div>
<?php if (isset($_['files']) && count($_['files']) === 0 && $_['dirlisting'] === false):?>
<div id="emptyfolder"><?php p($l->t('Nothing in here. Your trash bin is empty!'))?></div>
<div id="emptycontent"><?php p($l->t('Nothing in here. Your trash bin is empty!'))?></div>
<?php endif; ?>
<table id="filestable">

View File

@ -177,7 +177,14 @@ input[type="submit"].enabled { background:#66f866; border:1px solid #5e5; -moz-b
#leftcontent a { height:100%; display:block; margin:0; padding:0 1em 0 0; float:left; }
#rightcontent, .rightcontent { position:fixed; top:6.4em; left:24.5em; overflow:auto }
#emptycontent {
font-size:1.5em; font-weight:bold;
color:#888; text-shadow:#fff 0 1px 0;
position: absolute;
text-align: center;
top: 50%;
width: 100%;
}
/* LOG IN & INSTALLATION ------------------------------------------------------------ */