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
eaacfe41
Commit
eaacfe41
authored
May 21, 2009
by
Richard Mansfield
Browse files
Update str_shorten calls in filebrowser element
parent
06fab5a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/theme/raw/form/filelist.tpl
View file @
eaacfe41
...
...
@@ -25,7 +25,7 @@
{/
if
}
</td>
<td
class=
"filename"
>
{
assign
var
=
displaytitle
value
=
$file
->
title
|
escape
|
str_shorten
:
34
}
{
assign
var
=
displaytitle
value
=
$file
->
title
|
escape
|
str_shorten
_text
:
34
}
{
if
$file
->
artefacttype
==
'folder'
}
<a
href=
"
{
$querybase
}
folder=
{
$file
->
id
}
"
class=
"changefolder"
title=
"
{
str
tag
=
gotofolder
section
=
artefact
.
file
arg1
=
$displaytitle
}
"
>
{
$displaytitle
}
</a>
{
else
}
...
...
htdocs/artefact/file/theme/raw/form/folderpath.tpl
View file @
eaacfe41
{
foreach
from
=
$path
item
=
f
name
=
path
}
{
if
!
$smarty.foreach.path.first
}
/
{/
if
}
<a
href=
"
{
$querybase
}
folder=
{
$f
->
id
}
"
class=
"changefolder"
>
{
$f
->
title
|
escape
|
str_shorten
:
34
}
</a>
{
if
!
$smarty.foreach.path.first
}
/
{/
if
}
<a
href=
"
{
$querybase
}
folder=
{
$f
->
id
}
"
class=
"changefolder"
>
{
$f
->
title
|
escape
|
str_shorten
_text
:
34
}
</a>
{/
foreach
}
htdocs/artefact/file/theme/raw/form/selectedlist.tpl
View file @
eaacfe41
...
...
@@ -10,7 +10,7 @@
</thead>
<tbody>
{
foreach
from
=
$selectedlist
item
=
file
}
{
assign
var
=
displaytitle
value
=
$file
->
title
|
escape
|
str_shorten
:
34
}
{
assign
var
=
displaytitle
value
=
$file
->
title
|
escape
|
str_shorten
_text
:
34
}
<tr
class=
"r
{
cycle
values
=
0
,
1
}{
if
!
empty
(
$highlight
)
&&
$highlight
==
$file
->
id
}
highlight-file
{/
if
}
"
>
<td>
<img
src=
"
{
if
$file
->
artefacttype
==
'image'
}{
$WWWROOT
}
artefact/file/download.php?file=
{
$file
->
id
}
&size=20x20
{
else
}{
$THEMEURL
}
images/
{
$file
->
artefacttype
}
.gif
{/
if
}
"
>
...
...
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