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
b0effbb3
Commit
b0effbb3
authored
Oct 27, 2007
by
Nigel McNie
Browse files
A better description of the file type when viewing it in detail
parent
eae301ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/js/file.js
View file @
b0effbb3
...
...
@@ -539,7 +539,7 @@ function FileUploader(element, uploadscript, statevars, foldername, folderid, up
TD
(
null
,
SPAN
({
'
id
'
:
'
uploaddest
'
},
self
.
foldername
))),
TR
(
null
,
TH
(
null
,
LABEL
(
null
,
get_string
(
'
copyrightnotice
'
))),
TD
(
null
,
INPUT
({
'
type
'
:
'
checkbox
'
,
'
class
'
:
'
checkbox
'
,
'
name
'
:
'
notice
'
}),
notice
)),
TR
(
null
,
TH
(
null
,
LABEL
(
null
,
get_string
(
'
f
ile
'
))),
TR
(
null
,
TH
(
null
,
LABEL
(
null
,
get_string
(
'
F
ile
'
))),
TD
(
null
,
INPUT
({
'
type
'
:
'
file
'
,
'
class
'
:
'
file
'
,
'
name
'
:
'
userfile
'
,
'
size
'
:
40
,
'
onchange
'
:
function
()
{
self
.
form
.
title
.
value
=
basename
(
self
.
form
.
userfile
.
value
);
}}))),
...
...
htdocs/artefact/file/lang/en.utf8/artefact.file.php
View file @
b0effbb3
...
...
@@ -45,7 +45,8 @@ $string['download'] = 'Download';
$string
[
'editfile'
]
=
'Edit file'
;
$string
[
'editfolder'
]
=
'Edit folder'
;
$string
[
'emptyfolder'
]
=
'Empty folder'
;
$string
[
'file'
]
=
'File'
;
$string
[
'file'
]
=
'file'
;
$string
[
'File'
]
=
'File'
;
$string
[
'filealreadyindestination'
]
=
'The file you moved is already in that folder'
;
$string
[
'files'
]
=
'files'
;
$string
[
'fileexists'
]
=
'File exists'
;
...
...
htdocs/artefact/file/lib.php
View file @
b0effbb3
...
...
@@ -118,7 +118,7 @@ class PluginArtefactFile extends PluginArtefact {
'destination'
,
'editfile'
,
'editfolder'
,
'
f
ile'
,
'
F
ile'
,
'fileexistsoverwritecancel'
,
'filenamefieldisrequired'
,
'home'
,
...
...
@@ -293,9 +293,15 @@ abstract class ArtefactTypeFileBase extends ArtefactType {
if
(
isset
(
$options
[
'viewid'
]))
{
$downloadpath
.
=
'&view='
.
$options
[
'viewid'
];
}
$filetype
=
get_string
(
$this
->
get
(
'oldextension'
),
'artefact.file'
);
if
(
substr
(
$filetype
,
0
,
2
)
==
'[['
)
{
$filetype
=
$this
->
get
(
'oldextension'
)
.
' '
.
get_string
(
'file'
,
'artefact.file'
);
}
$smarty
=
smarty_core
();
$smarty
->
assign
(
'iconpath'
,
$this
->
get_icon
(
$options
));
$smarty
->
assign
(
'downloadpath'
,
$downloadpath
);
$smarty
->
assign
(
'filetype'
,
$filetype
);
$smarty
->
assign
(
'owner'
,
display_name
(
$this
->
get
(
'owner'
)));
$smarty
->
assign
(
'created'
,
strftime
(
get_string
(
'strftimedaydatetime'
),
$this
->
get
(
'ctime'
)));
$smarty
->
assign
(
'modified'
,
strftime
(
get_string
(
'strftimedaydatetime'
),
$this
->
get
(
'mtime'
)));
...
...
htdocs/artefact/file/theme/default/file_render_self.tpl
View file @
b0effbb3
...
...
@@ -4,7 +4,7 @@
</div>
<table
class=
"filedata"
>
<tr><th>
Type:
</th><td>
{
str
tag
=
$artefacttype
section
=
artefact
.
fil
e
}
</td></tr>
<tr><th>
Type:
</th><td>
{
$filetyp
e
}
</td></tr>
<tr><th>
Owner:
</th><td>
{
$owner
}
</td></tr>
<tr><th>
Created:
</th><td>
{
$created
}
</td></tr>
<tr><th>
Last modified:
</th><td>
{
$modified
}
</td></tr>
...
...
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