Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
c8ede094
Commit
c8ede094
authored
Sep 28, 2009
by
Richard Mansfield
Browse files
Show delete button for non-empty folders
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
03f77081
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/theme/raw/form/filelist.tpl
View file @
c8ede094
...
@@ -40,8 +40,8 @@
...
@@ -40,8 +40,8 @@
<td>
{
$file
->
mtime
}
</td>
<td>
{
$file
->
mtime
}
</td>
<td>
<td>
{
if
$editable
&&
!
$file
->
isparent
}
{
if
$editable
&&
!
$file
->
isparent
}
{
if
!
isset
(
$file
->
can_edit
)
||
$file
->
can_edit
!==
0
}
<input
type=
"submit"
class=
"submit btn-edit s"
name=
"
{
$prefix
}
_edit[
{
$file
->
id
}
]"
value=
"
{
str
tag
=
edit
}
"
/>
{/
if
}
{
if
!
isset
(
$file
->
can_edit
)
||
$file
->
can_edit
!==
0
}
<input
type=
"submit"
class=
"submit btn-edit s"
name=
"
{
$prefix
}
_edit[
{
$file
->
id
}
]"
value=
"
{
str
tag
=
edit
}
"
/>
{
if
$file
->
childcount
==
0
}
<input
type=
"submit"
class=
"submit btn-del s"
name=
"
{
$prefix
}
_delete[
{
$file
->
id
}
]"
value=
"
{
str
tag
=
delete
}
"
/>
{/
if
}
<input
type=
"submit"
class=
"submit btn-del s"
name=
"
{
$prefix
}
_delete[
{
$file
->
id
}
]"
value=
"
{
str
tag
=
delete
}
"
/>
{/
if
}
{/
if
}
{/
if
}
{
if
$selectable
&&
$file
->
artefacttype
!=
'folder'
&&
$publishable
}
{
if
$selectable
&&
$file
->
artefacttype
!=
'folder'
&&
$publishable
}
<input
type=
"submit"
class=
"select small"
name=
"
{
$prefix
}
_select[
{
$file
->
id
}
]"
id=
"
{
$prefix
}
_select_
{
$file
->
id
}
"
value=
"
{
str
tag
=
select
}
"
/>
<input
type=
"submit"
class=
"select small"
name=
"
{
$prefix
}
_select[
{
$file
->
id
}
]"
id=
"
{
$prefix
}
_select_
{
$file
->
id
}
"
value=
"
{
str
tag
=
select
}
"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment