Add resource revisions to the timeline and add proper templates and
rendering for resources and resource revisions (this is needed later on for the taxonomy). Directly link to individual resource / page revisions from the timeline as well.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<entry>
|
||||
<entry>
|
||||
<title>{$title}</title>
|
||||
<link href="{$url}"/>
|
||||
<id>{$url}:{$rev.id}</id>
|
11
src/IDF/templates/idf/wiki/feedfragment-resource.xml
Normal file
11
src/IDF/templates/idf/wiki/feedfragment-resource.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<entry>
|
||||
<title>{$title}</title>
|
||||
<link href="{$url}"/>
|
||||
<id>{$url}:{$rev.id}</id>
|
||||
<updated>{$date}</updated>
|
||||
<author>{$rev.get_submitter()}</author>
|
||||
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
|
||||
{if !$create}<p><strong>{trans 'Changes:'}</strong> {$rev.summary}</p>
|
||||
{else}{trans 'Initial creation'}{/if}
|
||||
</div></content>
|
||||
</entry>
|
Reference in New Issue
Block a user