[% META title="Report Items History" %]

<!-- BEGIN [% template.name %] -->
    [% # PROCESS dumper.tt dump = history %]
    
    [% INCLUDE record/patient_summary.tt %]

    <h3 class="header">Request [% c.param('Id') %] history</h3>
    
    <p class="indent">
        [ <span class="title">key:</span> unchanged text,
        <span class="del">text deletion</span>,
        <span class="add">text addition</span> ]
    </p>
    
    <ol>
        [% FOREACH entry IN history; # PROCESS dumper.tt dump = entry %]
        <li>
            <p class="title">[% entry.title %]</p>
            <div>
                [% entry.diff.replace('¬', '<br /><br />') %]
            </div>
            [% UNLESS loop.last %]<hr />[% END %]
        </li>
        [% END %]
    </ol>

    <hr />
    [% site.html.back_button %]
<!-- END [% template.name %] -->
