"Fossies" - the Fresh Open Source Software Archive

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


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) 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) 2011-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 ## Render data relevant to automatic ticket preview.
   13 
   14 # import 'macros.html' as jmacros with context
   15 
   16 # with
   17 #  set can_append = 'TICKET_APPEND' in perm(ticket.resource)
   18 #  with
   19 #    set chrome_info_script = none
   20 #    include 'ticket_box.html'
   21 #  endwith
   22 <div id="changelog">
   23   # for change in changes:
   24   #   set latest = change['comment_history'] | max
   25   #   set change_date = change['comment_history'][latest]['date']
   26   <div${{'class': [
   27            'change',
   28            'trac-new' if change_date is greaterthan(start_time) and
   29                          'attachment' not in change.fields],
   30            'id': 'trac-change-%d-%d' % (
   31                   change.cnum, to_utimestamp(change.date)) if 'cnum' in change
   32         }|htmlattr}>
   33     # with
   34     #   set edited_comment = none
   35     #   set cnum_edit = 0
   36     #   include 'ticket_change.html'
   37     # endwith
   38   </div>
   39   # endfor
   40 </div>
   41 <input type="hidden" name="view_time"
   42        value="${to_utimestamp(ticket['changetime'])}"/>
   43 <div id="preview">
   44   # if change_preview.fields or change_preview.comment:
   45   #   with
   46   #     set change = change_preview
   47   #     set preview = true
   48   #     include 'ticket_change.html'
   49   #   endwith
   50   # endif
   51 </div>
   52 ${jmacros.warnings(chrome.warnings, 'trac-preview-warning', close_message=False)}
   53 #   if chrome_info_script:
   54 ${chrome_info_script(req)}
   55 #   endif
   56 # endwith
   57 ## jinjacheck: "div input div" OK