"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/templates/history_view.html" (27 Aug 2019, 3867 Bytes) of package /windows/misc/Trac-1.4.win-amd64.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 <!DOCTYPE html>
   14 <html>
   15   <head>
   16     <title>
   17       # block title
   18       ${title}
   19       ${ super() }
   20       # endblock title
   21     </title>
   22     # block head
   23     ${ super() }
   24     <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
   25     <script>
   26       jQuery(function($) {
   27         $("#fieldhist").on("mouseenter mouseleave", "tr", function() {
   28           $(".inlinebuttons", $(this)).toggle();
   29         });
   30       });
   31     </script>
   32     # endblock head
   33   </head>
   34 
   35   <body>
   36     # block content
   37     <div id="content" class="${resource.realm}">
   38       <h1>${tag_("Change History for %(name)s",
   39             name='<a href="%s">%s</a>'|safe %
   40                  (url or url_of(resource), name or name_of(resource)))}
   41       </h1>
   42       # if history:
   43       <form id="history" class="printableform" method="get" action="#">
   44         <div class="buttons">
   45           <input type="hidden" name="action" value="${diff_action or 'diff'}" />
   46           # for k, v in  diff_args or []:
   47           <input type="hidden" name="${k}" value="${v}"/>
   48           # endfor
   49           <input type="submit" value="${_('View changes')}" />
   50         </div>
   51         # set has_comment = history|rejectattr('comment', 'none')|list
   52         <table id="fieldhist" class="listing">
   53           <thead>
   54             <tr>
   55               <th class="diff"></th>
   56               <th class="version">${_("Version")}</th>
   57               <th class="date">${_("Date")}</th>
   58               <th class="author">${_("Author")}</th>
   59               # if has_comment:
   60               <th class="comment">${_("Comment")}</th>
   61               # endif
   62             </tr>
   63           </thead>
   64           <tbody>
   65             # for item in history:
   66             <tr class="${loop.cycle('odd', 'even')}">
   67               <td class="diff">
   68                 <input type="radio" name="old_version" value="${item.version}"
   69                        ${{'checked': loop.index0 == 1}|htmlattr} />
   70                 <input type="radio" name="version" value="${item.version}"
   71                        ${{'checked': loop.first}|htmlattr} />
   72               </td>
   73               <td class="version">
   74                 <a href="${item.url or url_of(resource, version=item.version)}"
   75                    title="${_('View this version')}">${item.version}</a>
   76               </td>
   77               <td class="date">${pretty_dateinfo(item.date, dateonly=True)}</td>
   78               <td class="author">${authorinfo(item.author)}</td>
   79               # if has_comment:
   80               <td class="comment">
   81                 ${wiki_to_oneliner(context.child(resource), item.comment,
   82                                    shorten=true)}
   83                 # if can_edit_comment:
   84                 <span class="inlinebuttons">
   85                   <a href="${url_of(resource, action='edit_comment',
   86                              version=item.version)}">${
   87                     captioned_button("✎", _("Edit"))}</a>
   88                 </span>
   89                 # endif
   90               </td>
   91               # endif
   92             </tr>
   93             # endfor
   94           </tbody>
   95         </table>
   96         # if len(history) is greaterthan(10):
   97         <div class="buttons">
   98           <input type="submit" value="${_('View changes')}" />
   99         </div>
  100         # endif
  101       </form>
  102       # endif
  103     </div>
  104     ${ super() }
  105     # endblock content
  106   </body>
  107 </html>