"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/templates/diff_view.html" (27 Aug 2019, 4566 Bytes) of package /windows/misc/Trac-1.4.win32.exe:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {# Copyright (C) 2006-2014 Edgewall Software
    2 
    3   This software is licensed as described in the file COPYING, which
    4   you should have received as part of this distribution. The terms
    5   are also available at https://trac.edgewall.org/wiki/TracLicense.
    6 
    7   This software consists of voluntary contributions made by many
    8   individuals. For the exact contribution history, see the revision
    9   history and logs, available at https://trac.edgewall.org/.
   10 #}
   11 
   12 # extends 'layout.html'
   13 
   14 <!DOCTYPE html>
   15 <html>
   16 
   17   <head>
   18     <title>
   19       # block title
   20       ${title}
   21       ${ super() }
   22       # endblock
   23     </title>
   24 
   25     # block head
   26     ${ super() }
   27     <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
   28     # endblock head
   29   </head>
   30 
   31   <body>
   32     # block content
   33     <div id="content" class="${resource.realm}">
   34       <h1>
   35         # set old_url = old_url or url_of(resource, version=old_version)
   36         # set new_url = new_url or url_of(resource, version=new_version)
   37         # set url = url or url_of(resource, version=none)
   38         # set new_link
   39         <a href="${new_url}">${
   40           _("Version %(version)s", version=new_version)}</a>
   41         # endset
   42         # set src_link
   43         <a href="${url}">${name or name_of(resource)}</a>
   44         # endset
   45 
   46         # if old_version:
   47         #   set old_link
   48         <a href="${old_url}">${
   49           _("Version %(version)s", version=old_version)}</a>
   50         #   endset
   51         # elif old_version == 0:
   52         #   set old_link
   53         <a href="${old_url}">${_("Initial Version")}</a>
   54         #   endset
   55         # else:
   56         #   set old_link = ''
   57         # endif
   58 
   59         # if old_link:
   60         #   trans old_link, new_link, src_link
   61 
   62         Changes between ${old_link} and ${new_link} of ${src_link}
   63 
   64         #   endtrans
   65         # else:
   66         #   trans new_link, src_link
   67 
   68         Changes from ${new_link} of ${src_link}
   69 
   70         #   endtrans
   71         # endif
   72       </h1>
   73 
   74       <form method="post" id="prefs" action="${diff_url or url_of(resource)}">
   75         <div>
   76           ${jmacros.form_token_input()}
   77           <input type="hidden" name="action" value="${diff_action or 'diff'}" />
   78           # for k, v in diff_args or []:
   79           <input type="hidden" name="${k}" value="${v}"/>
   80           # endfor
   81           <input type="hidden" name="version" value="${new_version}" />
   82           <input type="hidden" name="old_version" value="${old_version}" />
   83           # include 'diff_options.html'
   84         </div>
   85       </form>
   86       # set multi = num_changes is greaterthan(1)
   87       <dl id="overview">
   88         <dt class="property time">${_("Timestamp:")}</dt>
   89         <dd class="time">
   90           # if multi:
   91           <em class="multi">${_("(multiple changes)")}</em>
   92           # elif change.date:
   93           ${tag_("%(date)s (%(duration)s ago)",
   94                  date=format_datetime(change.date),
   95                  duration=dateinfo(change.date))}
   96           # else:
   97           --
   98           # endif
   99         </dd>
  100         <dt class="property author">${_("Author:")}</dt>
  101         <dd class="author">
  102           # if multi:
  103           <em class="multi">${_("(multiple changes)")}</em>
  104           # else:
  105           ${authorinfo(change.author)}
  106           # endif
  107         </dd>
  108         # if change.comment is not none:
  109         <dt class="property message">${_("Comment:")}</dt>
  110         <dd class="message">
  111           # if multi:
  112           <em class="multi">${_("(multiple changes)")}</em>
  113           # else:
  114           #   if can_edit_comment:
  115           <span class="inlinebuttons">
  116             <a href="${url_of(resource, action='edit_comment',
  117                        version=resource.version, redirect_to='diff')}">${
  118               captioned_button("✎", _("Edit"))}</a>
  119           </span>
  120           #   endif
  121           ${wiki_to_html(context.child(resource), change.comment)}
  122           # endif
  123         </dd>
  124         # endif
  125       </dl>
  126       <div class="diff">
  127         <div class="legend" id="diff-legend">
  128           <h3>${_("Legend:")}</h3>
  129           <dl>
  130             <dt class="unmod"></dt><dd>${_("Unmodified")}</dd>
  131             <dt class="add"></dt><dd>${_("Added")}</dd>
  132             <dt class="rem"></dt><dd>${_("Removed")}</dd>
  133             <dt class="mod"></dt><dd>${_("Modified")}</dd>
  134           </dl>
  135         </div>
  136         # with no_id = false
  137         #   include 'diff_div.html'
  138         # endwith
  139       </div>
  140     </div>
  141     ${ super() }
  142     # endblock content
  143   </body>
  144 </html>