{# Copyright (C) 2006-2023 Edgewall Software
  This software is licensed as described in the file COPYING, which
  you should have received as part of this distribution. The terms
  are also available at https://trac.edgewall.org/wiki/TracLicense.
  This software consists of voluntary contributions made by many
  individuals. For the exact contribution history, see the revision
  history and logs, available at https://trac.edgewall.org/.
#}
# extends 'layout.html'
  
    
      
        # set old_url = old_url or url_of(resource, version=old_version)
        # set new_url = new_url or url_of(resource, version=new_version)
        # set url = url or url_of(resource, version=none)
        # set new_link
        ${
          _("Version %(version)s", version=new_version)}
        # endset
        # set src_link
        ${name or name_of(resource)}
        # endset
        # if old_version:
        #   set old_link
        ${
          _("Version %(version)s", version=old_version)}
        #   endset
        # elif old_version == 0:
        #   set old_link
        ${_("Initial Version")}
        #   endset
        # else:
        #   set old_link = ''
        # endif
        # if old_link:
        #   trans old_link, new_link, src_link
        Changes between ${old_link} and ${new_link} of ${src_link}
        #   endtrans
        # else:
        #   trans new_link, src_link
        Changes from ${new_link} of ${src_link}
        #   endtrans
        # endif
      
      
      # set multi = num_changes is greaterthan(1)
      
        - ${_("Timestamp:")}
- 
          # if multi:
          ${_("(multiple changes)")}
          # elif change.date:
          ${tag_("%(date)s (%(duration)s ago)",
                 date=format_datetime(change.date),
                 duration=dateinfo(change.date))}
          # else:
          --
          # endif
        
- ${_("Author:")}
- 
          # if multi:
          ${_("(multiple changes)")}
          # else:
          ${authorinfo(change.author)}
          # endif
        # if change.comment is not none:
- ${_("Comment:")}
- 
          # if multi:
          ${_("(multiple changes)")}
          # else:
          #   if can_edit_comment:
          
            ${
              captioned_button("✎", _("Edit"))}
          
          #   endif
          ${wiki_to_html(context.child(resource), change.comment)}
          # endif
        # endif
        
          ${_("Legend:")}
          
            - ${_("Unmodified")}
- ${_("Added")}
- ${_("Removed")}
- ${_("Modified")}
 
        # with no_id = false
        #   include 'diff_div.html'
        # endwith
      
 
     
    ${ super() }
    # endblock content