<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <xi:include href="macros.html" />
  <head>
    <title>$title</title>
    <link rel="stylesheet" type="text/css" href="${chrome.htdocs_location}css/diff.css" />
    <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
  </head>

  <body>
    <div id="content" class="${resource.realm}">
      <!--! FIXME: message_contains_tag --> 
      <h1 py:choose="">
        <py:when test="old_version">
          <a href="${url_of(resource, version=old_version)}">${_('Version')} $old_version</a> から
        </py:when>
        <py:when test="old_version == 0">
          <a href="${url_of(resource, version=0)}">${_('Initial Version')}</a> から
        </py:when>
        <py:otherwise></py:otherwise>
        <a href="${url_of(resource, version=new_version)}">${_('Version')} $new_version</a> における更新:
        <a href="${url_of(resource)}">${name_of(resource)}</a>
      </h1>
      <form method="post" id="prefs" action="${url_of(resource)}">
        <div>
          <input type="hidden" name="action" value="diff" />
          <input type="hidden" name="version" value="$new_version" />
          <input type="hidden" name="old_version" value="$old_version" />
          ${diff_options_fields(diff)}
        </div>
      </form>
      <dl id="overview" py:with="multi = num_changes &gt; 1">
        <dt class="property time">${_('Timestamp')}:</dt>
        <dd class="time" py:choose="">
          <em py:when="multi" class="multi">${_('(multiple changes)')}</em>
          <py:when test="change.date">${format_datetime(change.date)} (${dateinfo(change.date)} 前)</py:when> <!--! FIXME: message_contains_tag -->
          <py:otherwise>--</py:otherwise>
        </dd>
        <dt class="property author">${_('Author')}:</dt>
        <dd class="author" py:choose="">
          <em py:when="multi" class="multi">${_('(multiple changes)')}</em>
          <py:otherwise>${authorinfo(change.author)}
            <span py:if="show_ip_addresses and 'ipnr' in change" class="ipnr">${_('(IP: %(ipnr)s)', ipnr=change.ipnr)}</span></py:otherwise>
        </dd>
        <dt class="property message">${_('Comment')}:</dt>
        <dd class="message" py:choose="" xml:space="preserve">
          <em py:when="multi" class="multi">${_('(multiple changes)')}</em>
          <py:otherwise>${wiki_to_html(context(resource), change.comment)}</py:otherwise>
        </dd>
      </dl>
      <div class="diff">
        <div class="legend" id="diff-legend">
          <h3>${_('Legend')}:</h3>
          <dl>
            <dt class="unmod"></dt><dd>${_('Unmodified')}</dd>
            <dt class="add"></dt><dd>${_('Added')}</dd>
            <dt class="rem"></dt><dd>${_('Removed')}</dd>
            <dt class="mod"></dt><dd>${_('Modified')}</dd>
          </dl>
        </div>

        <xi:include href="diff_div.html" py:with="no_id=False"/>

      </div>
    </div>
  </body>
</html>
