"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/templates/genshi/environment_info.html" (27 Aug 2019, 4354 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) 2014-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 Display system information.
   12 
   13 Arguments:
   14  - system_info: the output of `Environment.system_info`.
   15  - plugins: the output of `get_plugin_info`.
   16  - config: the output of `get_configinfo`.
   17 -->
   18 
   19 <html xmlns="http://www.w3.org/1999/xhtml"
   20       xmlns:py="http://genshi.edgewall.org/"
   21       xmlns:i18n="http://genshi.edgewall.org/i18n"
   22       xmlns:xi="http://www.w3.org/2001/XInclude"
   23       py:strip="">
   24 
   25   <div py:if="system_info or plugins or config" id="environmentinfo">
   26     <hr />
   27 
   28     <div py:if="system_info" id="systeminfo">
   29       <script>//<![CDATA[
   30         jQuery(function($) {
   31           $("#systeminfo table").before("<p>User Agent: <code>" + navigator.userAgent + "</code></p>")
   32                                 .append("<tr><th>jQuery</th><td>" + $().jquery + "</td></tr>" +
   33                                         "<tr><th>jQuery UI</th><td>" + $.ui.version + "</td></tr>" +
   34                                         "<tr><th>jQuery Timepicker</th><td>" + $.timepicker.version + "</td></tr>");
   35         });
   36       //]]></script>
   37 
   38       <h2>System Information</h2>
   39       <table class="listing">
   40         <thead><tr><th>Package</th><th>Version</th></tr></thead>
   41         <tbody>
   42           <tr py:for="name, value in system_info">
   43             <th>$name</th>
   44             <td>$value</td>
   45           </tr>
   46         </tbody>
   47       </table>
   48     </div>
   49 
   50     <div py:if="plugins" id="plugins">
   51       <h2>Installed Plugins</h2>
   52       <table class="listing">
   53         <thead><tr><th>Name</th><th>Version</th><th>Location</th></tr></thead>
   54         <tbody>
   55           <tr py:for="plugin in plugins"
   56               class="${'disabled' if all(not component.enabled for module in plugin.modules.itervalues()
   57                                          for component in module.components.itervalues()) else None}">
   58             <th py:with="url = plugin.info.home_page or plugin.info.author_email and 'mailto:' + plugin.info.author_email">
   59               <a py:strip="not url" href="$url">$plugin.name</a>
   60             </th>
   61             <td>${plugin.version or _('N/A')}</td>
   62             <td class="file"><a py:strip="'frame_idx' not in plugin" href="#frame$plugin.frame_idx">$plugin.path</a></td>
   63           </tr>
   64         </tbody>
   65       </table>
   66     </div>
   67 
   68     <div py:if="interface" id="interface">
   69       <h2>Interface Customization</h2>
   70       <table class="listing">
   71         <tr>
   72           <th class="section">Site templates</th>
   73           <td class="file">${' '.join(interface['site-templates'])}</td>
   74         </tr>
   75         <tr>
   76           <th class="section">Shared templates</th>
   77           <td class="file">${' '.join(interface['shared-templates'])}</td>
   78         </tr>
   79         <tr>
   80           <th class="section">Site static resources</th>
   81           <td class="file">${' '.join(interface['site-htdocs'])}</td>
   82         </tr>
   83         <tr>
   84           <th class="section">Shared static resources</th>
   85           <td class="file">${' '.join(interface['shared-htdocs'])}</td>
   86         </tr>
   87       </table>
   88     </div>
   89 
   90     <div py:if="config" id="config">
   91       <h2>Configuration</h2>
   92       <table class="listing">
   93         <thead>
   94           <tr>
   95             <th class="section">Section</th>
   96             <th class="name">Name</th>
   97             <th class="value">Value</th>
   98           </tr>
   99         </thead>
  100         <tbody>
  101           <py:for each="section in config">
  102             <tr py:for="idx,option in enumerate(section.options)"
  103                 class="${'modified' if option.modified else None}">
  104               <th py:if="idx == 0" class="section"
  105                   rowspan="${len(section.options)}">${section.name}</th>
  106               <td class="name">${option.name}</td>
  107               <td class="value">${option.value}</td>
  108             </tr>
  109           </py:for>
  110         </tbody>
  111       </table>
  112     </div>
  113   </div>
  114 
  115 </html>