{# Copyright (C) 2014-2020 Edgewall Software
  This software is licensed as described in the file COPYING, which
  you should have received as part of this distribution. The terms
  are also available at https://trac.edgewall.org/wiki/TracLicense.
  This software consists of voluntary contributions made by many
  individuals. For the exact contribution history, see the revision
  history and logs, available at https://trac.edgewall.org/.
#}
## Display system information.
{# Arguments:
 - system_info: the output of `Environment.system_info`.
 - plugins: the output of `get_plugin_info`.
 - config: the output of `get_configinfo`.
#}
# if system_info or plugins or config:
  
  # if system_info:
  
    
    ${_("System Information")}
    
      | ${_("Package")} | ${_("Version")} | 
|---|
      
        # for name, value in system_info:
        
          | ${name} | ${value} | 
        # endfor
      
    
   
  # endif
  # if plugins:
  
    ${_("Installed Plugins")}
    
      
          | ${_("Name")} | ${_("Version")} | ${_("Location")} | 
      
        # for plugin in plugins:
        #   set components = plugin.modules|map(attribute='components')|flatten
        
          # set url = (plugin.info.home_page or
                       plugin.info.author_email and
                       'mailto:' + plugin.info.author_email)
          | # if url:
            ${plugin.name}
            # else:
            ${plugin.name}
            # endif | ${plugin.version or _('N/A')} | # if 'frame_idx' in plugin:
            ${plugin.path}
            # else:
            ${plugin.path}
            # endif | 
        # endfor
      
    
   
  # endif
  # if interface:
  
    ${_("Interface Customization")}
    
      
        | ${_("Site templates")} | ${' '.join(interface['site-templates'])} | 
      
        | ${_("Shared templates")} | ${' '.join(interface['shared-templates'])} | 
      
        | ${_("Site static resources")} | ${' '.join(interface['site-htdocs'])} | 
      
        | ${_("Shared static resources")} | ${' '.join(interface['shared-htdocs'])} | 
    
   
  # endif
  # if config:
  
    ${_("Configuration")}
    
      
        
          | ${_("Section")} | ${_("Name")} | ${_("Value")} | 
      
      
        # for section in config:
        #   for option in section.options:
        
          # if loop.first:
          | ${section.name}# endif | ${option.name} | ${option.value} | 
        #  endfor
        # endfor
      
    
   
  # endif
 
# endif