Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
6f58eca5
Commit
6f58eca5
authored
12 years ago
by
Michael Gapczynski
Browse files
Options
Downloads
Patches
Plain Diff
Change read only check to isCreatable
parent
ede2b8a5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/files/index.php
+1
-1
1 addition, 1 deletion
apps/files/index.php
apps/files/templates/index.php
+5
-5
5 additions, 5 deletions
apps/files/templates/index.php
with
6 additions
and
6 deletions
apps/files/index.php
+
1
−
1
View file @
6f58eca5
...
@@ -93,7 +93,7 @@ $tmpl = new OCP\Template( 'files', 'index', 'user' );
...
@@ -93,7 +93,7 @@ $tmpl = new OCP\Template( 'files', 'index', 'user' );
$tmpl
->
assign
(
'fileList'
,
$list
->
fetchPage
(),
false
);
$tmpl
->
assign
(
'fileList'
,
$list
->
fetchPage
(),
false
);
$tmpl
->
assign
(
'breadcrumb'
,
$breadcrumbNav
->
fetchPage
(),
false
);
$tmpl
->
assign
(
'breadcrumb'
,
$breadcrumbNav
->
fetchPage
(),
false
);
$tmpl
->
assign
(
'dir'
,
$dir
);
$tmpl
->
assign
(
'dir'
,
$dir
);
$tmpl
->
assign
(
'
readonly
'
,
!
OC_Filesystem
::
is
_wri
table
(
$dir
.
'/'
));
$tmpl
->
assign
(
'
isCreatable
'
,
OC_Filesystem
::
is
Crea
table
(
$dir
.
'/'
));
$tmpl
->
assign
(
'files'
,
$files
);
$tmpl
->
assign
(
'files'
,
$files
);
$tmpl
->
assign
(
'uploadMaxFilesize'
,
$maxUploadFilesize
);
$tmpl
->
assign
(
'uploadMaxFilesize'
,
$maxUploadFilesize
);
$tmpl
->
assign
(
'uploadMaxHumanFilesize'
,
OCP\Util
::
humanFileSize
(
$maxUploadFilesize
));
$tmpl
->
assign
(
'uploadMaxHumanFilesize'
,
OCP\Util
::
humanFileSize
(
$maxUploadFilesize
));
...
...
This diff is collapsed.
Click to expand it.
apps/files/templates/index.php
+
5
−
5
View file @
6f58eca5
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}table td{position:static !important;}</style><![endif]-->
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}table td{position:static !important;}</style><![endif]-->
<div
id=
"controls"
>
<div
id=
"controls"
>
<?php
echo
(
$_
[
'breadcrumb'
]);
?>
<?php
echo
(
$_
[
'breadcrumb'
]);
?>
<?php
if
(
!
isset
(
$_
[
'readonly'
])
||
!
$_
[
'readonly
'
])
:
?>
<?php
if
(
$_
[
'isCreatable
'
])
:
?>
<div
class=
"actions
<?php
if
(
isset
(
$_
[
'files'
])
and
!
$_
[
'readonly'
]
and
count
(
$_
[
'files'
])
==
0
)
:
?>
emptyfolder
<?php
endif
;
?>
"
>
<div
class=
"actions
<?php
if
(
isset
(
$_
[
'files'
])
and
count
(
$_
[
'files'
])
==
0
)
:
?>
emptyfolder
<?php
endif
;
?>
"
>
<div
id=
'new'
class=
'button'
>
<div
id=
'new'
class=
'button'
>
<a>
<?php
echo
$l
->
t
(
'New'
);
?>
</a>
<a>
<?php
echo
$l
->
t
(
'New'
);
?>
</a>
<ul
class=
"popup popupTop"
>
<ul
class=
"popup popupTop"
>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</div>
</div>
<div
id=
'notification'
></div>
<div
id=
'notification'
></div>
<?php
if
(
isset
(
$_
[
'files'
])
and
!
$_
[
'
readonly
'
]
and
count
(
$_
[
'files'
])
==
0
)
:
?>
<?php
if
(
isset
(
$_
[
'files'
])
and
$_
[
'
isCreatable
'
]
and
count
(
$_
[
'files'
])
==
0
)
:
?>
<div
id=
"emptyfolder"
>
<?php
echo
$l
->
t
(
'Nothing in here. Upload something!'
)
?>
</div>
<div
id=
"emptyfolder"
>
<?php
echo
$l
->
t
(
'Nothing in here. Upload something!'
)
?>
</div>
<?php
endif
;
?>
<?php
endif
;
?>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<thead>
<thead>
<tr>
<tr>
<th
id=
'headerName'
>
<th
id=
'headerName'
>
<?php
if
(
!
isset
(
$_
[
'readonly'
])
||
!
$_
[
'readonly'
])
{
?>
<input
type=
"checkbox"
id=
"select_all"
/>
<?php
}
?>
<input
type=
"checkbox"
id=
"select_all"
/>
<span
class=
'name'
>
<?php
echo
$l
->
t
(
'Name'
);
?>
</span>
<span
class=
'name'
>
<?php
echo
$l
->
t
(
'Name'
);
?>
</span>
<span
class=
'selectedActions'
>
<span
class=
'selectedActions'
>
<!-- <a href="" class="share"><img class='svg' alt="Share" src="
<?php
echo
OCP\image_path
(
"core"
,
"actions/share.svg"
);
?>
" />
<?php
echo
$l
->
t
(
'Share'
)
?>
</a> -->
<!-- <a href="" class="share"><img class='svg' alt="Share" src="
<?php
echo
OCP\image_path
(
"core"
,
"actions/share.svg"
);
?>
" />
<?php
echo
$l
->
t
(
'Share'
)
?>
</a> -->
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<th
id=
"headerDate"
><span
id=
"modified"
>
<?php
echo
$l
->
t
(
'Modified'
);
?>
</span><span
class=
"selectedActions"
><a
href=
""
class=
"delete"
>
<?php
echo
$l
->
t
(
'Delete'
)
?>
<img
class=
"svg"
alt=
"
<?php
echo
$l
->
t
(
'Delete'
)
?>
"
src=
"
<?php
echo
OCP\image_path
(
"core"
,
"actions/delete.svg"
);
?>
"
/></a></span></th>
<th
id=
"headerDate"
><span
id=
"modified"
>
<?php
echo
$l
->
t
(
'Modified'
);
?>
</span><span
class=
"selectedActions"
><a
href=
""
class=
"delete"
>
<?php
echo
$l
->
t
(
'Delete'
)
?>
<img
class=
"svg"
alt=
"
<?php
echo
$l
->
t
(
'Delete'
)
?>
"
src=
"
<?php
echo
OCP\image_path
(
"core"
,
"actions/delete.svg"
);
?>
"
/></a></span></th>
</tr>
</tr>
</thead>
</thead>
<tbody
id=
"fileList"
data-readonly=
"
<?php
echo
$_
[
'readonly'
];
?>
"
>
<tbody
id=
"fileList"
>
<?php
echo
(
$_
[
'fileList'
]);
?>
<?php
echo
(
$_
[
'fileList'
]);
?>
</tbody>
</tbody>
</table>
</table>
...
...
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