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
4f5d948e
Commit
4f5d948e
authored
Aug 27, 2010
by
Richard Mansfield
Browse files
Fix leap namespaces for plan artefacts
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
bca5c8f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/plans/export/leap/theme/raw/plan.tpl
View file @
4f5d948e
{
include
file
=
"export:leap:entry.tpl"
skipfooter
=
true
}
{
if
$completion
}
<leap:status
leap:stage=
"
{
$completion
}
"
/>
{/
if
}
{
if
$completion
}
<leap
2
:status
leap
2
:stage=
"
{
$completion
}
"
/>
{/
if
}
{
include
file
=
"export:leap:entryfooter.tpl"
}
htdocs/artefact/plans/import/leap/lib.php
View file @
4f5d948e
...
...
@@ -157,7 +157,8 @@ class LeapImportPlans extends LeapImportArtefactPlugin {
}
$artefact
->
set
(
'completiondate'
,
empty
(
$completiondate
)
?
$artefact
->
get
(
'mtime'
)
:
$completiondate
);
if
(
$entry
->
xpath
(
'leap:status[@leap:stage="completed"]'
))
{
$ns
=
$importer
->
get_leap2a_namespace
();
if
(
$entry
->
xpath
(
$ns
.
':status[@'
.
$ns
.
':stage="completed"]'
))
{
$artefact
->
set
(
'completed'
,
1
);
}
}
...
...
htdocs/export/leap/theme/raw/entry.tpl
View file @
4f5d948e
...
...
@@ -15,7 +15,7 @@
{
include
file
=
"export:leap:links.tpl"
}
{
include
file
=
"export:leap:categories.tpl"
}
{
foreach
from
=
$dates
item
=
date
}
<leap:date
leap:point=
"
{
$date.point
}
"
{
if
$date.label
}
leap:label=
"
{
$date.label
}
"
{/
if
}
>
{
$date.date
}
</leap:date>
<leap
2
:date
leap
2
:point=
"
{
$date.point
}
"
{
if
$date.label
}
leap
2
:label=
"
{
$date.label
}
"
{/
if
}
>
{
$date.date
}
</leap
2
:date>
{/
foreach
}
{
if
!
$skipfooter
}
{
include
file
=
"export:leap:entryfooter.tpl"
}
...
...
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