Skip to content
Snippets Groups Projects
Commit 11b3c10c authored by Dawid Opis's avatar Dawid Opis
Browse files

resolved merge conflicts

parents 9683d446 ce9b36fd
Branches
No related tags found
No related merge requests found
ErrorDocument 404 //core/templates/404.php ErrorDocument 404 //owncloud/core/templates/404.php
php_value upload_max_filesize 20M php_value upload_max_filesize 2048G
php_value post_max_size 20M php_value post_max_size 2048G
SetEnv htaccessWorking true SetEnv htaccessWorking true
Options -Indexes Options -Indexes
form { display:inline; } form { display:inline; }
td.name, td.password { padding-left:.8em; }
td.password>img, td.remove>img { display:none; cursor:pointer; } td.password>img, td.remove>img { display:none; cursor:pointer; }
td.password>span { margin-right:1.2em; } td.password>span { margin-right:1.2em; }
td.password { width:12em; } td.password { width:12em; cursor:pointer; }
td.password>img { float:right; }
td.remove { width:1em } td.remove { width:1em; }
tr:hover>td.password>span{ margin:0; } tr:hover>td.password>span { margin:0; cursor:pointer; }
tr:hover>td.remove>img, tr:hover>td.password>img { display:inline; } tr:hover>td.remove>img, tr:hover>td.password>img { display:inline; cursor:pointer; }
tr:hover>td.remove>img { float:right; }
li.selected { background-color:#ddd; } li.selected { background-color:#ddd; }
#content>table { margin-top:6.5em; } #content>table { margin-top:6.5em; }
table { width:100%; } table { width:100%; }
...@@ -46,6 +46,7 @@ $(document).ready(function(){ ...@@ -46,6 +46,7 @@ $(document).ready(function(){
}); });
$('td.password>img').live('click',function(event){ $('td.password>img').live('click',function(event){
event.stopPropagation();
var img=$(this); var img=$(this);
var uid=img.parent().parent().data('uid'); var uid=img.parent().parent().data('uid');
var input=$('<input type="password">'); var input=$('<input type="password">');
...@@ -71,6 +72,9 @@ $(document).ready(function(){ ...@@ -71,6 +72,9 @@ $(document).ready(function(){
img.css('display',''); img.css('display','');
}); });
}); });
$('td.password').live('click',function(event){
$(this).children('img').click();
});
$('#newuser').submit(function(event){ $('#newuser').submit(function(event){
event.preventDefault(); event.preventDefault();
...@@ -88,7 +92,7 @@ $(document).ready(function(){ ...@@ -88,7 +92,7 @@ $(document).ready(function(){
} }
); );
var tr=$('#content table tr').first().clone(); var tr=$('#content table tr').first().next().clone();
tr.attr('data-uid',username); tr.attr('data-uid',username);
tr.find('td.name').text(username); tr.find('td.name').text(username);
var select=$('<select multiple="multiple" data-placehoder="Groups" title="Groups">'); var select=$('<select multiple="multiple" data-placehoder="Groups" title="Groups">');
......
<div id="controls">
<form id="newuser">
<input id="newusername" placeholder="<?php echo $l->t('Name')?>"></input>
<input type="password" id="newuserpassword" placeholder="<?php echo $l->t('Password')?>"></input>
<select id="newusergroups" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple">
<?php foreach($_["groups"] as $group): ?>
<option value="<?php echo $group['name'];?>"><?php echo $group['name'];?></option>
<?php endforeach;?>
</select>
<input type="submit" value="<?php echo $l->t('Create')?>"></input>
</form>
</div>
<?php <?php
$allGroups=array(); $allGroups=array();
foreach($_["groups"] as $group) { foreach($_["groups"] as $group) {
$allGroups[]=$group['name']; $allGroups[]=$group['name'];
} }
?> ?>
<table data-groups="<?php echo implode(', ',$allGroups);?>"> <table data-groups="<?php echo implode(', ',$allGroups);?>">
<tbody id="controls">
<tr><form id="newuser">
<th class="name"><input id="newusername" placeholder="<?php echo $l->t('Name')?>"></input></th>
<th class="password"><input type="password" id="newuserpassword" placeholder="<?php echo $l->t('Password')?>"></input></th>
<th class="groups"><select id="newusergroups" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple">
<?php foreach($_["groups"] as $group): ?>
<option value="<?php echo $group['name'];?>"><?php echo $group['name'];?></option>
<?php endforeach;?>
</select></th>
<th><input type="submit" value="<?php echo $l->t('Create')?>"></input></th>
</form></tr>
<?php foreach($_["users"] as $user): ?> <?php foreach($_["users"] as $user): ?>
<tr data-uid="<?php echo $user["name"] ?>"> <tr data-uid="<?php echo $user["name"] ?>">
<td class="name"><?php echo $user["name"]; ?></td> <td class="name"><?php echo $user["name"]; ?></td>
...@@ -38,4 +38,5 @@ foreach($_["groups"] as $group){ ...@@ -38,4 +38,5 @@ foreach($_["groups"] as $group){
</td> </td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</tbody>
</table> </table>
<input type="hidden" id="baseUrl" value="<?php echo $_['baseUrl'];?>"/> <input type="hidden" id="baseUrl" value="<?php echo $_['baseUrl'];?>"/>
<table id="linklist"> <table id="linklist">
<thead id="controls"> <thead id="controls">
<tr id="newlink_row"> <tr id="newlink_row"><form action="#" id="newlink">
<form action="#" id="newlink">
<td class="path"><input placeholder="Path" id="path"/></td> <td class="path"><input placeholder="Path" id="path"/></td>
<td><input type="submit" value="Share" /></td> <td><input type="submit" value="Share" /></td>
</form> </form></tr>
</tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach($_['links'] as $link):?> <?php foreach($_['links'] as $link):?>
......
...@@ -9,7 +9,7 @@ table { border-collapse:separate; border-spacing:0; white-space:nowrap; } ...@@ -9,7 +9,7 @@ table { border-collapse:separate; border-spacing:0; white-space:nowrap; }
caption, th, td { text-align:left; font-weight:normal; } caption, th, td { text-align:left; font-weight:normal; }
table, td, th { vertical-align:middle; } table, td, th { vertical-align:middle; }
a { border:0; color:#000; text-decoration:none;} a { border:0; color:#000; text-decoration:none;}
a, a img, a strong, a span, input, select, li { cursor:pointer; } a, a *, input, input *, select, .button span, li { cursor:pointer; }
ul { list-style:none; } ul { list-style:none; }
body { background:#fefefe; font:normal 80%/1.6em "Lucida Grande", Arial, Verdana, sans-serif; color:#000; margin-bottom:2em; } body { background:#fefefe; font:normal 80%/1.6em "Lucida Grande", Arial, Verdana, sans-serif; color:#000; margin-bottom:2em; }
...@@ -99,6 +99,6 @@ legend { padding:.2em; font-size:1.2em; } ...@@ -99,6 +99,6 @@ legend { padding:.2em; font-size:1.2em; }
li.error { width:640px; margin:4em auto; padding:1em 1em 1em 4em; background:#ffe .8em .8em no-repeat; border:1px solid #ccc; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; } li.error { width:640px; margin:4em auto; padding:1em 1em 1em 4em; background:#ffe .8em .8em no-repeat; border:1px solid #ccc; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; }
.hidden{ display:none; } .hidden{ display:none; }
#notification{ z-index:101; background-color:#fc4; border:0; padding:0 .7em .3em; display:block; position:fixed; left:50%; top:0; #notification{ z-index:101; cursor:pointer; background-color:#fc4; border:0; padding:0 .7em .3em; display:block; position:fixed; left:50%; top:0;
-moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em; -moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em;
-moz-border-radius-bottomright:1em; -webkit-border-bottom-right-radius:1em; border-bottom-right-radius:1em; } -moz-border-radius-bottomright:1em; -webkit-border-bottom-right-radius:1em; border-bottom-right-radius:1em; }
...@@ -202,6 +202,22 @@ $(document).ready(function(){ ...@@ -202,6 +202,22 @@ $(document).ready(function(){
var src=element.attr('src'); var src=element.attr('src');
element.attr('src',src.substr(0,src.length-3)+'png'); element.attr('src',src.substr(0,src.length-3)+'png');
}); });
$('.svg').each(function(index,element){
element=$(element);
var background=element.css('background-image');
if(background && background!='none'){
background=background.substr(0,background.length-4)+'png)';
element.css('background-image',background);
}
element.find('*').each(function(index,element) {
element=$(element);
var background=element.css('background-image');
if(background && background!='none'){
background=background.substr(0,background.length-4)+'png)';
element.css('background-image',background);
}
});
});
}; };
$('form.searchbox').submit(function(event){ $('form.searchbox').submit(function(event){
event.preventDefault(); event.preventDefault();
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
.file_upload_start { opacity:0; filter:alpha(opacity=0); z-index:1; position:absolute; left:0; top:0; width:100%; cursor:pointer;} .file_upload_start { opacity:0; filter:alpha(opacity=0); z-index:1; position:absolute; left:0; top:0; width:100%; cursor:pointer;}
.file_upload_filename { z-index:100; cursor:pointer;} .file_upload_filename { z-index:100; cursor:pointer;}
.file_upload_form, .file_upload_wrapper, .file_upload_start, .file_upload_filename, #file_upload_submit { cursor:pointer; }
/* FILE TABLE */ /* FILE TABLE */
span#emptyfolder { position:absolute; margin:10em 0 0 10em; font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0; } span#emptyfolder { position:absolute; margin:10em 0 0 10em; font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0; }
table { position:relative; top:37px; width:100%; } table { position:relative; top:37px; width:100%; }
......
...@@ -5,15 +5,16 @@ ...@@ -5,15 +5,16 @@
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
<input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)"> <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir"> <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
<div class="file_upload_wrapper"> <div class="file_upload_wrapper" class="svg">
<input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');?> (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/> <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');
if($_['uploadMaxFilesize']<(10000000000)){echo ' (max. '.$_['uploadMaxHumanFilesize'].')';}?>"/>
<input id="file_upload_start" class="file_upload_start" type="file" name='files[]'/> <input id="file_upload_start" class="file_upload_start" type="file" name='files[]'/>
<a href="#" id="file_upload_button_wrapper" onclick="return false;"></a> <a href="#" id="file_upload_button_wrapper" onclick="return false;"></a>
</div> </div>
<iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe> <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
</form> </form>
<form id="file_newfolder_form"> <form id="file_newfolder_form">
<input type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="<?php echo $l->t('New Folder')?>" /> <input class="svg" type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="<?php echo $l->t('New Folder')?>" />
</form> </form>
</div> </div>
<div id="file_action_panel"> <div id="file_action_panel">
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
$relative_date_color = round((time()-$file['mtime'])/60/60/24*14); // the older the file, the brighter the shade of grey; days*14 $relative_date_color = round((time()-$file['mtime'])/60/60/24*14); // the older the file, the brighter the shade of grey; days*14
if($relative_date_color>200) $relative_date_color = 200; ?> if($relative_date_color>200) $relative_date_color = 200; ?>
<tr data-file="<?php echo $file['name'];?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>" data-size='<?php echo $file['size'];?>'> <tr data-file="<?php echo $file['name'];?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>" data-size='<?php echo $file['size'];?>'>
<td class="filename" style="background-image:url(<?php if($file['type'] == 'dir') echo mimetype_icon('dir'); else echo mimetype_icon($file['mime']); ?>)"> <td class="filename svg" style="background-image:url(<?php if($file['type'] == 'dir') echo mimetype_icon('dir'); else echo mimetype_icon($file['mime']); ?>)">
<input type="checkbox" /> <input type="checkbox" />
<a class="name svg" href="<?php if($file['type'] == 'dir') echo link_to('files', 'index.php?dir='.$file['directory'].'/'.$file['name']); else echo link_to('files', 'download.php?file='.$file['directory'].'/'.$file['name']); ?>" title=""> <a class="name" href="<?php if($file['type'] == 'dir') echo link_to('files', 'index.php?dir='.$file['directory'].'/'.$file['name']); else echo link_to('files', 'download.php?file='.$file['directory'].'/'.$file['name']); ?>" title="">
<span class="nametext"> <span class="nametext">
<?php if($file['type'] == 'dir'):?> <?php if($file['type'] == 'dir'):?>
<?php echo htmlspecialchars($file['name']);?> <?php echo htmlspecialchars($file['name']);?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment