Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
e78d1dd6
Commit
e78d1dd6
authored
13 years ago
by
Bartek Przybylski
Browse files
Options
Downloads
Patches
Plain Diff
hints for file actions
parent
d5ba4ec8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
files/css/files.css
+3
-2
3 additions, 2 deletions
files/css/files.css
files/js/fileactions.js
+10
-0
10 additions, 0 deletions
files/js/fileactions.js
files/js/filelist.js
+1
-1
1 addition, 1 deletion
files/js/filelist.js
files/templates/part.list.php
+1
-0
1 addition, 0 deletions
files/templates/part.list.php
with
15 additions
and
3 deletions
files/css/files.css
+
3
−
2
View file @
e78d1dd6
...
...
@@ -29,9 +29,10 @@ table { position:relative; top:37px; width:100%; }
tbody
tr
:hover
,
tbody
tr
:active
,
tbody
tr
.selected
{
background-color
:
#f8f8f8
;
height
:
1em
;
}
tbody
tr
.selected
{
background-color
:
#eee
;
}
tbody
a
{
color
:
#000
;
}
span
.extention
,
td
.date
{
color
:
#999
;
}
span
.extention
{
opacity
:
0
;
-webkit-transition
:
opacity
500ms
;
-moz-transition
:
opacity
500ms
;
-o-transition
:
opacity
500ms
;
transition
:
opacity
500ms
;
}
span
.extention
,
span
.actionHint
,
td
.date
{
color
:
#999
;
}
span
.extention
,
span
.actionHint
{
opacity
:
0
;
-webkit-transition
:
opacity
500ms
;
-moz-transition
:
opacity
500ms
;
-o-transition
:
opacity
500ms
;
transition
:
opacity
500ms
;
}
tr
:hover
span
.extention
{
opacity
:
1
;
}
tr
:hover
span
.actionHint
{
opacity
:
1
;
}
div
.crumb
{
float
:
left
;
display
:
block
;
background
:
no-repeat
right
0
;
padding
:
.75em
1.5em
0
1em
;
height
:
2.9em
;
}
div
.crumb
:first-child
{
padding-left
:
1.5em
;
}
div
.crumb
:last-child
{
font-weight
:
bold
;
}
...
...
This diff is collapsed.
Click to expand it.
files/js/fileactions.js
+
10
−
0
View file @
e78d1dd6
...
...
@@ -82,6 +82,11 @@ FileActions={
});
parent
.
children
(
'
a.name
'
).
append
(
element
);
}
element
.
hover
(
function
(
e
){
$
(
'
span.actionHint
'
).
text
(
$
(
this
).
data
(
'
action
'
));
},
function
(
e
){
$
(
'
span.actionHint
'
).
text
(
''
);
});
}
if
(
actions
[
'
Delete
'
]){
var
img
=
FileActions
.
icons
[
'
Delete
'
];
...
...
@@ -136,6 +141,11 @@ FileActions.register('all','Rename',function(){return OC.imagePath('core','actio
FileList
.
rename
(
filename
);
});
// preparation for encryption embeeding in user interface
//FileActions.register('all', 'Encrypt', function(){return OC.imagePath('core', 'actions/play-add')},function(filename){
// alert(filename);
//});
//FileActions.setDefault('all','Download');
FileActions
.
register
(
'
dir
'
,
'
Open
'
,
''
,
function
(
filename
){
...
...
This diff is collapsed.
Click to expand it.
files/js/filelist.js
+
1
−
1
View file @
e78d1dd6
...
...
@@ -50,7 +50,7 @@ FileList={
html
+=
'
<td class="filesize" title="
'
+
humanFileSize
(
size
)
+
'
" style="color:rgb(
'
+
sizeColor
+
'
,
'
+
sizeColor
+
'
,
'
+
sizeColor
+
'
)">
'
+
simpleSize
+
'
</td>
'
;
html
+=
'
<td class="date" title="
'
+
formatDate
(
lastModified
)
+
'
" style="color:rgb(
'
+
modifiedColor
+
'
,
'
+
modifiedColor
+
'
,
'
+
modifiedColor
+
'
)">
'
+
relative_modified_date
(
lastModified
.
getTime
()
/
1000
)
+
'
</td>
'
;
html
+=
'
</tr>
'
;
FileList
.
insertElement
(
name
,
'
dir
'
,
$
(
html
));
$
(
'
tr[data-file="
'
+
name
+
'
"] td.filename
'
).
draggable
(
dragOptions
);
$
(
'
tr[data-file="
'
+
name
+
'
"] td.filename
'
).
droppable
(
folderDropOptions
);
...
...
This diff is collapsed.
Click to expand it.
files/templates/part.list.php
+
1
−
0
View file @
e78d1dd6
...
...
@@ -16,6 +16,7 @@
<?php
echo
htmlspecialchars
(
$file
[
'basename'
]);
?>
<span
class=
'extention'
>
<?php
echo
$file
[
'extention'
];
?>
</span>
<?php
endif
;
?>
</span>
<span
class=
"actionHint"
></span>
</a>
</td>
<td
class=
"filesize"
title=
"
<?php
echo
human_file_size
(
$file
[
'size'
]);
?>
"
style=
"color:rgb(
<?php
echo
$simple_size_color
.
','
.
$simple_size_color
.
','
.
$simple_size_color
?>
)"
>
<?php
echo
$simple_file_size
;
?>
</td>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment