/upstream/templates/history_frameset.tmpl
Type: /type/template
body: value: $def with (page, h)

$var title: $page.name

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="" />
    <meta name="title" content="" />

    <meta name="author" content="OpenLibrary.org" />
    <meta name="creator" content="OpenLibrary.org" />
    <meta name="copyright" content="Original content copyright; 2009" />
    <meta name="distribution" content="Global" />
    <meta name="robots" content="Index, Follow" />

    <title>$:page.title ($_("Open Library"))</title>

    <link href="/css/master.css?format=raw" rel="stylesheet" type="text/css" />
    
</head>
<frameset rows="150,*" framespacing="0" frameborder="no" border="0">
    <frame frameborder="0" marginheight="0" marginwidth="0" id="historyHead" name="historyHead" noresize="noresize" scrolling="no" src="historyNav.html"></frame>
    <frame frameborder="0" marginheight="0" marginwidth="0" id="historyPage" name="historyPage" noresize="noresize" scrolling="auto" src="history01.html"></frame>
</frameset>
<noframes>

<div id="contentHead">
    $:macros.databarView(page)
    <div class="head">
        <span class="tools">$_("Currently viewing the history for"):</span>
        <h1>$page.key</h1>
    </div>
    <p class="small sansserif">
        $_("Last modified") $(page.last_modified and datestr(page.last_modified))
    </p>
</div>

<div id="contentBody">
        <form>
        <table id="pageHistory">
        <thead>
            <tr>
                <th class="numberhead" colspan="3">$_("Revision")</th>
                <th class="historyheader"></th>
                <th class="historyheader">$_("Who")</th>
                <th class="historyheader">$_("What")</th>
                <th class="historyheader">$_("When")</th>
            </tr>
        </thead>
        <tbody>
            $for v in h:
                <tr>
                    <td class="number">$v.revision</td>
                    <td class="compare"><input type="radio" id="a$v.revision" name="a" value="$v.revision" selected=></td>
                    <td class="compare"><input type="radio" id="b$v.revision" name="b" value="$v.revision"></td>
                    <td class="history"><a href="$changequery(m='edit', v=v.revision)">$_("Edit")</a></td>
                    $if v.author:
                        <td class="displayname" valign="top"><div class="truncatedisplayname"><a href="$homepath()$v.author.key" class="truncate" title="$v.author.displayname">$v.author.displayname</a></div></td>
                    $elif v.ip and v.ip != '127.0.0.1':
                        <td class="history" valign="top"><a href="/recentchanges?ip=$v.ip">$v.ip</a></td>
                    $else:
                        <td class="history" valign="top">$v.ip</td>
                    <td class="comment">$v.comment
		        $if v.machine_comment: (<a href="/show-marc/$v.machine_comment">$_("View MARC")</a>)
		    </td>
                    <td class="history"><a href="$changequery(m=None, v=v.revision)">$datestr(v.created)</a></td>
                </tr>
        </tbody>
        </table>
        <input type="hidden" name='m' value="diff">

        <br />
        <div class="button-border"><input type="submit" value="$_('Compare')"  name="_compare" title="$_('Compare')"/></div>
        <br /><br />

        </form>

        <script>
            var a = document.getElementById("a${page.latest_revision - 1}");
            var a2 = document.getElementById("a$page.latest_revision");
            var b = document.getElementById("b$page.latest_revision");

            if (a) 
                a.checked = true;
            else
                a2.checked = true;
            b.checked = true;
        </script>

        $ page = safeint(query_param("page", "0"))
        $if page != 0:
            <a href="$:changequery(page=page - 1)" rel="nofollow">$_("Prev")</a>
        $if len(h) == 20:
            <a href="$:changequery(page=page + 1)" rel="nofollow">$_("Next")</a>
</div>

</noframes>
</html>
title: History frameset