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
d94277de
Commit
d94277de
authored
Sep 09, 2009
by
Richard Mansfield
Browse files
Display tags on folders when displayed in view
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
2f71cfb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/lib.php
View file @
d94277de
...
...
@@ -1144,6 +1144,8 @@ class ArtefactTypeFolder extends ArtefactTypeFileBase {
$smarty
=
smarty_core
();
$smarty
->
assign
(
'title'
,
$this
->
get
(
'title'
));
$smarty
->
assign
(
'description'
,
$this
->
get
(
'description'
));
$smarty
->
assign
(
'tags'
,
$this
->
get
(
'tags'
));
$smarty
->
assign
(
'owner'
,
$this
->
get
(
'owner'
));
$smarty
->
assign
(
'viewid'
,
isset
(
$options
[
'viewid'
])
?
$options
[
'viewid'
]
:
0
);
$smarty
->
assign
(
'simpledisplay'
,
isset
(
$options
[
'simpledisplay'
])
?
$options
[
'simpledisplay'
]
:
false
);
...
...
htdocs/artefact/file/theme/raw/folder_render_self.tpl
View file @
d94277de
<div>
{
if
!
$simpledisplay
}
<h3>
{
$title
|
escape
}
</h3>
{/
if
}
<div>
{
$description
|
escape
}
</div>
{
if
$tags
}
<div
class=
"tags"
>
{
str
tag
=
tags
}
:
{
list_tags
owner
=
$owner
tags
=
$tags
}
</div>
{/
if
}
<div>
{
if
(
isset
(
$children
))
}
<table>
...
...
Write
Preview
Markdown
is supported
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