"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/wiki/templates/wiki_delete.html" (27 Aug 2019, 6082 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 title
   23     </title>
   24   </head>
   25 
   26   <body>
   27     # block content
   28     #   set current_href = href.wiki(page.name)
   29     <div id="content" class="wiki">
   30       <h1>
   31         # set name
   32         <a href="${current_href}">${page.name}</a>
   33         # endset
   34         # if what == 'multiple':
   35         #   trans from = old_version + 1, to = new_version, name
   36 
   37         Delete versions ${from} to ${to} of ${name}
   38 
   39         #   endtrans
   40         # elif what == 'single':
   41         #   trans version = new_version, name
   42 
   43         Delete version ${version} of ${name}
   44 
   45         #   endtrans
   46         # else:
   47         #   trans name
   48 
   49         Delete ${name}
   50 
   51         #   endtrans
   52         # endif
   53       </h1>
   54 
   55       # set history_href = href.wiki(page.name, action='history',
   56                                      version=page.version)
   57       # set diff_href = href.wiki(page.name, action='diff', version=new_version,
   58                                   old_version=old_version+1 if what == 'multiple'
   59                                                             else None)
   60 
   61       # set first_modified = pretty_dateinfo(old_date)
   62       # set last_modified = pretty_dateinfo(new_date)
   63 
   64       <form id="delete-confirm" action="${current_href}" method="post">
   65         ${jmacros.form_token_input()}
   66 
   67         # if what == 'multiple':
   68         <p>
   69           <strong>
   70             # set version
   71             <a href="${diff_href}">
   72               ${_("versions %(from)s to %(to)s", from=old_version+1, to=new_version)}
   73             </a>
   74             # endset
   75             # trans version
   76 
   77             Are you sure you want to delete ${version} of this page?
   78 
   79             # endtrans
   80           </strong>
   81           <br />
   82           # set num_versions
   83           <a href="${history_href}">${
   84             ngettext("%(num)d version", "%(num)d versions", num=num_versions)
   85           }</a>
   86           # endset
   87           # trans num_versions, first_modified, last_modified
   88 
   89           Removing ${num_versions} of the page, which was first
   90           modified ${first_modified} and last modified ${last_modified}.
   91 
   92           # endtrans
   93         </p>
   94         # elif what == 'single':
   95         <p>
   96           <strong>
   97             # set version
   98             <a href="${diff_href}">${_("version %(number)s", number=new_version)}</a>
   99             # endset
  100 
  101             # trans version
  102 
  103             Are you sure you want to delete ${version} of this page?
  104 
  105             # endtrans
  106           </strong>
  107           <br />
  108           # if num_versions == 1:
  109           #   trans created = last_modified
  110 
  111           Created ${created}.
  112 
  113           #   endtrans
  114           <br />
  115           #   trans
  116           This is the only version of the page,
  117           so the page will be removed completely!
  118           #   endtrans
  119 
  120           # else:
  121           #   trans modified = last_modified
  122 
  123           Modified ${modified}.
  124 
  125           #   endtrans
  126           # endif
  127         </p>
  128         # else:
  129         <p>
  130           <strong>
  131             ${_("Are you sure you want to completely delete this page?")}
  132           </strong>
  133           <br />
  134           # if num_versions == 1:
  135           #   set version
  136           <a href="${diff_href}">${_("version")}</a>
  137           #   endset
  138           #   trans version, created = last_modified
  139 
  140           Removing the one and only ${version} of the page, which was
  141           created ${created}.
  142 
  143           #   endtrans
  144           # else:
  145           #   set num_versions
  146           <a href="${history_href}">${
  147             ngettext("%(num)d version", "%(num)d versions", num=num_versions)
  148             }</a>
  149           #   endset
  150           #   trans num_versions, created = first_modified, modified = last_modified
  151 
  152           Removing all ${num_versions} of the page, which was created
  153           ${created} and last modified ${modified}.
  154 
  155           #   endtrans
  156           # endif
  157         </p>
  158         # endif
  159         # if (what == 'page' or num_versions == 1) and attachments:
  160           <p>${_("The following attachments will also be deleted:")}</p>
  161           <ul>
  162             # for attachment in attachments:
  163             <li>
  164               <a href="${url_of(attachment.resource)}"
  165                  title="${_('View attachment')}">${attachment.filename}</a>
  166             </li>
  167             # endfor
  168           </ul>
  169           # endif
  170         <p><strong>${_("This is an irreversible operation.")}</strong></p>
  171         <div class="buttons">
  172           <input type="hidden" name="action" value="delete" />
  173           # if new_version:
  174           <input type="hidden" name="version" value="${new_version}" />
  175           # endif
  176           # if old_version:
  177           <input type="hidden" name="old_version" value="${old_version}" />
  178           # endif
  179           <input type="submit" id="delete" class="trac-disable-on-submit"
  180                  value="${what == 'multiple' and _('Delete those versions')
  181                           or what == 'single' and _('Delete this version')
  182                           or _('Delete page')}" />
  183           <input type="submit" name="cancel" value="${_('Cancel')}" />
  184         </div>
  185       </form>
  186 
  187       # call(note, page) jmacros.wikihelp('WikiDeletePage'):
  188       #   trans note, page
  189 
  190       ${note} See ${page} for help on deleting wiki pages.
  191 
  192       #   endtrans
  193       # endcall
  194     </div>
  195     ${ super() }
  196     # endblock content
  197   </body>
  198 </html>