Indefero

Indefero Commit Details


Date:2011-12-12 17:18:49 (13 years 9 days ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:a83634c1662f8498e5f1b63301330265c5c5f9e2
Parents: 4dd89942700d56539a9ec35171760a4a7419c67c
Message:Render information about the old revision to-be-deleted, not about the current one.

Changes:

File differences

src/IDF/Views/Wiki.php
452452
453453
454454
455
456455
457456
458457
......
461460
462461
463462
464
465463
466464
467465
}
$title = sprintf(__('Delete Old Revision of %s'), $resource->title);
$revision = $resource->get_current_revision();
$false = Pluf_DB_BooleanToDb(false, $resource->getDbConnection());
$revs = $resource->get_revisions_list(array('order' => 'creation_dtime DESC',
'filter' => 'is_head='.$false));
'page_title' => $title,
'resource' => $resource,
'oldrev' => $oldrev,
'rev' => $revision,
'revs' => $revs,
),
$request);
src/IDF/templates/idf/wiki/deleteResourceRev.html
2121
2222
2323
24
24
2525
2626
2727
2828
2929
3030
31
31
3232
33
33
3434
3535
3636
......
3838
3939
4040
41
42
41
42
4343
4444
4545
<p class="desc">{$resource.summary}</p>
{assign $preview = $rev.renderRaw()}
{assign $preview = $oldrev.renderRaw()}
{if $preview == ''}
{assign $preview = __('Unable to render preview for this MIME type.')}
{/if}
<p class="preview">{$preview|unsafe}</p>
<ul>
<li>{trans 'File size'}: {$rev.filesize|size}</li>
<li>{trans 'File size'}: {$oldrev.filesize|size}</li>
<li>{trans 'MIME type'}: {$resource.mime_type}</li>
<li><a href="{$rev.getRawURL(true)}">{trans 'Download this file'}</a></li>
<li><a href="{$oldrev.getRawURL(true)}">{trans 'Download this file'}</a></li>
</ul>
{/block}
{block context}
{assign $submitter = $resource.get_submitter()}
<p><strong>{trans 'Created:'}</strong> <span class="nobrk">{$resource.creation_dtime|dateago}</span><br /><span class="nobrk">{blocktrans}by {$submitter}{/blocktrans}</span></p>
{if $rev.creation_dtime != $resource.creation_dtime}<p>{assign $submitter = $rev.get_submitter()}
<strong>{trans 'Updated:'}</strong> <span class="nobrk">{$rev.creation_dtime|dateago}</span><br /><span class="nobrk">{blocktrans}by {$submitter}{/blocktrans}</span></p>{/if}
{if $oldrev.creation_dtime != $resource.creation_dtime}<p>{assign $submitter = $oldrev.get_submitter()}
<strong>{trans 'Updated:'}</strong> <span class="nobrk">{$oldrev.creation_dtime|dateago}</span><br /><span class="nobrk">{blocktrans}by {$submitter}{/blocktrans}</span></p>{/if}
{if $revs.count() > 0}
<p><strong>{trans 'Old Revisions'}</strong></p>
<ul>{foreach $revs as $old}

Archive Download the corresponding diff file

Page rendered in 0.07921s using 13 queries.