fix pagediff to not display as "preview"

I think originally, the page preview header was not displayed,
so diff was hacked in using it.
master
Joey Hess 2010-05-06 22:19:14 -04:00
parent a47e835f3a
commit d3aaf6e01f
2 changed files with 10 additions and 1 deletions

View File

@ -71,7 +71,7 @@ sub formbuilder_setup {
$content=~s/\r/\n/g;
my $diff = diff(srcfile($pagesources{$page}), $content);
$form->tmpl_param("page_preview", $diff);
$form->tmpl_param("page_diff", $diff);
}
}

View File

@ -54,3 +54,12 @@
<TMPL_VAR PAGE_PREVIEW>
</div>
</TMPL_IF>
<TMPL_IF NAME="PAGE_DIFF">
<hr />
<div class="header">
<span>Diff:</span>
</div>
<div id="diff">
<TMPL_VAR PAGE_DIFF>
</div>
</TMPL_IF>