"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/templates/genshi/diff_options.html" (27 Aug 2019, 2702 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) 2009-2019 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 Add diff option fields (to be used inside a form)
   12 
   13 Arguments:
   14  - `diff` the datastructure which contains diff options
   15 -->
   16 <div xmlns="http://www.w3.org/1999/xhtml"
   17     xmlns:py="http://genshi.edgewall.org/"
   18     xmlns:xi="http://www.w3.org/2001/XInclude"
   19     xmlns:i18n="http://genshi.edgewall.org/i18n"
   20     py:strip="">
   21   <label for="style">View differences</label>
   22   <select id="style" name="style">
   23     <option selected="${diff.style == 'inline' or None}"
   24             value="inline">inline</option>
   25     <option selected="${diff.style == 'sidebyside' or None}"
   26             value="sidebyside">side by side</option>
   27   </select>
   28   <div class="field">
   29     <i18n:msg>
   30       <label><input type="radio" name="contextall" value="0"
   31                     checked="${not diff.options.contextall or None}"/>
   32              Show</label>
   33       <label><input type="text" name="contextlines" id="contextlines" size="2"
   34                     maxlength="3" value="${diff.options.contextlines &lt; 0 and
   35                                            'all' or diff.options.contextlines}"/>
   36              lines around each change</label>
   37     </i18n:msg><br/>
   38     <label><input type="radio" name="contextall" value="1"
   39                   checked="${diff.options.contextall or None}"/>
   40            Show the changes in full context</label>
   41   </div>
   42   <fieldset id="ignore" py:with="options = diff.options">
   43     <legend>Ignore:</legend>
   44     <div class="field">
   45       <input type="checkbox" id="ignoreblanklines" name="ignoreblanklines"
   46              checked="${options.ignoreblanklines or None}" />
   47       <label for="ignoreblanklines">Blank lines</label>
   48     </div>
   49     <div class="field">
   50       <input type="checkbox" id="ignorecase" name="ignorecase"
   51              checked="${options.ignorecase or None}" />
   52       <label for="ignorecase">Case changes</label>
   53     </div>
   54     <div class="field">
   55       <input type="checkbox" id="ignorewhitespace" name="ignorewhitespace"
   56              checked="${options.ignorewhitespace or None}" />
   57       <label for="ignorewhitespace">White space changes</label>
   58     </div>
   59   </fieldset>
   60   <div class="buttons">
   61     <input type="submit" name="update" value="${_('Update')}" />
   62   </div>
   63 </div>