"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/wiki/templates/wiki_view.html" (27 Aug 2019, 8292 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 # extends 'layout.html'
   12 <!DOCTYPE html>
   13 <html>
   14   <head>
   15     <title>
   16       # block title
   17       #   if title:
   18       ${title} ${ super() }
   19       #   else:
   20       ${project.name or 'Trac'}
   21       #   endif
   22       # endblock title
   23     </title>
   24 
   25     # block head
   26     #   set modify_perm = 'WIKI_MODIFY' in perm(page.resource)
   27     #   set is_not_latest = page.exists and page.version != latest_version
   28 
   29     ${ super() }
   30 
   31     #   if version or page.author == 'trac':
   32     <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
   33     #   endif
   34     #   if modify_perm:
   35     <link rel="alternate" type="application/x-wiki"
   36           href="${href.wiki(page.name, action='edit',
   37                 version=page.version if is_not_latest)}"
   38           title="${_('Revert page to this version') if is_not_latest else
   39                    _("Edit this page")}"/>
   40     #   endif
   41     <script>
   42       jQuery(function($) {
   43         wikiColumn($("#wikipage"));
   44       });
   45     </script>
   46     # endblock head
   47   </head>
   48 
   49   <body>
   50     # block content
   51     #   set modify_perm = 'WIKI_MODIFY' in perm(page.resource)
   52     #   set create_perm = 'WIKI_CREATE' in perm(page.resource)
   53     #   set admin_perm = 'WIKI_ADMIN' in perm(page.resource)
   54     #   set is_not_latest = page.exists and page.version != latest_version
   55     <div id="content" class="${classes('wiki', narrow=not fullwidth, create=not page.exists)}">
   56 
   57       # if version:
   58       <br />
   59       <table id="info">
   60         <tr><th scope="row">
   61             # with
   62             #   set version = page.version
   63             #   set author = authorinfo(page.author)
   64             #   set date = pretty_dateinfo(page.time)
   65             #   set diff
   66             <a href="${href.wiki(page.name, action='diff', version=version)}">
   67               ${_("diff")}</a>
   68             #   endset
   69             #   trans version, author, date, diff
   70 
   71             Version ${version} (modified by ${author}, ${date})
   72             (${diff})
   73 
   74             #   endtrans
   75             # endwith
   76         </th></tr>
   77         <tr><td class="message">
   78             ${wiki_to_html(context, page.comment or '--')}
   79         </td></tr>
   80       </table>
   81       # endif
   82 
   83       <div class="wikipage searchable">
   84         # if page.exists:
   85         <div id="wikipage" class="trac-content borderless">${
   86           wiki_to_html(context, text)
   87         }</div>
   88         #   if not version:
   89         <div class="trac-modifiedby">
   90           <span>
   91             # with
   92             #   set href = href.wiki(page.name, action='diff',
   93                                      version=page.version)
   94             #   set last_modification = (
   95                   _('Version %(version)s by %(author)s: %(comment)s',
   96                     version=page.version, author=format_author(page.author),
   97                     comment=page.comment)
   98                   if page.comment else
   99                   _('Version %(version)s by %(author)s', version=page.version,
  100                     author=format_author(page.author))
  101                 )
  102             #   set last_modified
  103             <a href="${href}" title="${last_modification}">${
  104               _("Last modified")}</a>
  105             #   endset
  106             #   set date = pretty_dateinfo(page.time)
  107             #   trans last_modified, date
  108 
  109             ${last_modified} ${date}
  110 
  111             #   endtrans
  112             # endwith
  113           </span>
  114           <span class="trac-print">
  115             ${_("Last modified on %(date)s", date=format_datetime(page.time))}
  116           </span>
  117         </div>
  118         #   endif
  119         # else:
  120         <p>
  121           # set name
  122           <strong>${name_of(page.resource)}</strong>
  123           # endset
  124           # trans name
  125 
  126           The page ${name} does not exist.  You can create it here.
  127 
  128           # endtrans
  129         </p>
  130         # endif
  131       </div>
  132 
  133       # with
  134       #   set alist = attachments
  135       #   set compact = True
  136       #   set foldable = True
  137       #   include 'list_of_attachments.html'
  138       # endwith
  139 
  140       # with
  141       #   set delete_perm = 'WIKI_DELETE' in perm(page.resource)
  142       #   set rename_perm = 'WIKI_RENAME' in perm(page.resource)
  143       #   if modify_perm or create_perm or delete_perm:
  144       <div class="buttons">
  145         #   if modify_perm or create_perm:
  146         <form method="get" action="${href.wiki(page.name)}" id="modifypage">
  147           <div>
  148             <input type="hidden" name="action" value="edit" />
  149             # if is_not_latest and modify_perm:
  150             <input type="hidden" name="version" value="${page.version}"/>
  151             <input type="submit" value="${_('Revert to this version')}"/>
  152             # elif page.exists and modify_perm:
  153             <input type="submit" value="${_('Edit this page')}"
  154                    ${accesskey("e")}/>
  155             # elif not page.exists and create_perm:
  156             <input type="submit" value="${_('Create this page')}"
  157                    ${accesskey("e")}/>
  158             #   if templates:
  159             <div id="template">
  160               <label for="template">${_("using the template:")}</label>
  161               <select name="template">
  162                 <option ${{'selected': not default_template in templates
  163                         }|htmlattr}
  164                         value="">${_("(blank page)")}</option>
  165                 # for t in sorted(templates):
  166                 <option value="${t}"
  167                         ${{'selected': t == default_template
  168                         }|htmlattr}>${t}</option>
  169                 # endfor
  170               </select>
  171             </div>
  172             #   endif
  173             # endif
  174           </div>
  175         </form>
  176 
  177         #     if page.exists:
  178         #       with alist = attachments
  179         #         include 'attach_file_form.html'
  180         #       endwith
  181         #     endif
  182         #   endif
  183 
  184         #   if page.exists and rename_perm:
  185         <form method="get" action="${href.wiki(page.name)}" id="rename">
  186           <div>
  187             <input type="hidden" name="action" value="rename"/>
  188             <input type="submit" value="${_('Rename page')}"/>
  189           </div>
  190         </form>
  191         #   endif
  192         #   if page.exists and delete_perm:
  193         <form method="get" action="${href.wiki(page.name)}" id="delete">
  194           <div>
  195             <input type="hidden" name="action" value="delete"/>
  196             <input type="hidden" name="version" value="${page.version}"/>
  197             # if page.version == latest_version:
  198             <input type="submit" name="delete_version"
  199                    value="${_('Delete this version')}"/>
  200             # endif
  201             <input type="submit" id="delete_page" value="${_('Delete page')}"/>
  202           </div>
  203         </form>
  204         #   endif
  205       </div>
  206       #   endif
  207       # endwith
  208 
  209       # if not page.exists and higher:
  210       <div class="wikipage searchable">
  211         <p>
  212           ${_("You could also create the same page higher in the hierarchy:")}
  213         </p>
  214         <ul>
  215           # for markup in higher:
  216           <li>${markup}</li>
  217           # endfor
  218         </ul>
  219       </div>
  220       # endif
  221 
  222       # if not page.exists and related:
  223       <div class="wikipage searchable">
  224         <p>
  225           # trans
  226 
  227           The following pages have a name similar to this page, and
  228           may be related:
  229 
  230           # endtrans
  231         </p>
  232         <ul>
  233           # for markup in related:
  234           <li>${markup}</li>
  235           # endfor
  236         </ul>
  237       </div>
  238       # endif
  239 
  240       # call(note, page) jmacros.wikihelp('TracWiki'):
  241       #   trans note, page
  242 
  243       ${note} See ${page} for help on using the wiki.
  244 
  245       #   endtrans
  246       # endcall
  247     </div>
  248     ${ super() }
  249     # endblock content
  250   </body>
  251 </html>