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
a9c0f7fc
Commit
a9c0f7fc
authored
Jul 25, 2013
by
Robert Lyon
Committed by
Gerrit Code Review
Jul 25, 2013
Browse files
Merge "Show full filenames"
parents
fba67d6d
7d46c586
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/blocktype/filedownload/theme/raw/filedownload.tpl
View file @
a9c0f7fc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"filedownload-item"
title=
"
{
$file.title
}
"
>
<div
class=
"filedownload-item"
title=
"
{
$file.title
}
"
>
<div
class=
"fl"
><a
href=
"
{
$file.downloadurl
}
"
target=
"_blank"
><img
src=
"
{
$file.iconsrc
}
"
alt=
""
></a></div>
<div
class=
"fl"
><a
href=
"
{
$file.downloadurl
}
"
target=
"_blank"
><img
src=
"
{
$file.iconsrc
}
"
alt=
""
></a></div>
<div
style=
"margin-left: 30px;"
>
<div
style=
"margin-left: 30px;"
>
<h3
class=
"title"
><a
href=
"
{
$file.downloadurl
}
"
target=
"_blank"
>
{
$file.title
|
str_shorten_text
:
20
}
</a></h3>
<h3
class=
"title"
><a
href=
"
{
$file.downloadurl
}
"
target=
"_blank"
>
{
$file.title
}
</a></h3>
{
if
$file.description
}
<p>
{
$file.description
}
</p>
{/
if
}
{
if
$file.description
}
<p>
{
$file.description
}
</p>
{/
if
}
<div
class=
"description"
>
{
$file.size
|
display_size
}
|
{
$file.ctime
|
format_date
:
'strftimedaydate'
}
<div
class=
"description"
>
{
$file.size
|
display_size
}
|
{
$file.ctime
|
format_date
:
'strftimedaydate'
}
|
<a
href=
"
{
$WWWROOT
}
view/artefact.php?artefact=
{
$file.id
}
&view=
{
$viewid
}
"
>
{
str
tag
=
Details
section
=
artefact
.
file
}
</a></div>
|
<a
href=
"
{
$WWWROOT
}
view/artefact.php?artefact=
{
$file.id
}
&view=
{
$viewid
}
"
>
{
str
tag
=
Details
section
=
artefact
.
file
}
</a></div>
...
...
htdocs/artefact/file/lib.php
View file @
a9c0f7fc
...
@@ -1652,9 +1652,6 @@ class ArtefactTypeFolder extends ArtefactTypeFileBase {
...
@@ -1652,9 +1652,6 @@ class ArtefactTypeFolder extends ArtefactTypeFileBase {
foreach
(
$childrecords
as
&
$child
)
{
foreach
(
$childrecords
as
&
$child
)
{
$c
=
artefact_instance_from_id
(
$child
->
id
);
$c
=
artefact_instance_from_id
(
$child
->
id
);
$child
->
title
=
$child
->
hovertitle
=
$c
->
get
(
'title'
);
$child
->
title
=
$child
->
hovertitle
=
$c
->
get
(
'title'
);
if
(
!
empty
(
$options
[
'simpledisplay'
]))
{
$child
->
title
=
str_shorten_text
(
$child
->
title
,
20
);
}
$child
->
date
=
format_date
(
strtotime
(
$child
->
mtime
),
'strfdaymonthyearshort'
);
$child
->
date
=
format_date
(
strtotime
(
$child
->
mtime
),
'strfdaymonthyearshort'
);
$child
->
iconsrc
=
call_static_method
(
generate_artefact_class_name
(
$child
->
artefacttype
),
'get_icon'
,
array
(
'id'
=>
$child
->
id
,
'viewid'
=>
isset
(
$options
[
'viewid'
])
?
$options
[
'viewid'
]
:
0
));
$child
->
iconsrc
=
call_static_method
(
generate_artefact_class_name
(
$child
->
artefacttype
),
'get_icon'
,
array
(
'id'
=>
$child
->
id
,
'viewid'
=>
isset
(
$options
[
'viewid'
])
?
$options
[
'viewid'
]
:
0
));
}
}
...
...
htdocs/artefact/file/theme/raw/form/filelist.tpl
View file @
a9c0f7fc
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
{/
if
}
{/
if
}
</td>
</td>
<td
class=
"filename"
>
<td
class=
"filename"
>
{
assign
var
=
displaytitle
value
=
$file
->
title
|
str_shorten_text
:
34
|
safe
}
{
assign
var
=
displaytitle
value
=
$file
->
title
|
safe
}
{
if
$file
->
artefacttype
==
'folder'
}
{
if
$file
->
artefacttype
==
'folder'
}
<a
href=
"
{
$querybase
|
safe
}
folder=
{
$file
->
id
}{
if
$owner
}
&owner=
{
$owner
}{
if
$ownerid
}
&ownerid=
{
$ownerid
}{/
if
}{/
if
}
"
class=
"changefolder"
title=
"
{
str
tag
=
gotofolder
section
=
artefact
.
file
arg1
=
$displaytitle
}
"
>
{
if
!
$file
->
isparent
}{
$displaytitle
}{/
if
}
</a>
<a
href=
"
{
$querybase
|
safe
}
folder=
{
$file
->
id
}{
if
$owner
}
&owner=
{
$owner
}{
if
$ownerid
}
&ownerid=
{
$ownerid
}{/
if
}{/
if
}
"
class=
"changefolder"
title=
"
{
str
tag
=
gotofolder
section
=
artefact
.
file
arg1
=
$displaytitle
}
"
>
{
if
!
$file
->
isparent
}{
$displaytitle
}{/
if
}
</a>
{
elseif
!
$publishable
}
{
elseif
!
$publishable
}
...
...
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