Sha256: d7e982170f6f72779c3c185fd72ebce458cf61e0a60b32d5e465932a48d34bdb

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

<SystemPage>
  <?r base = "#{@base}/%base%" ?>
  <h1><a href='/'>Home</a> > System</h1>
  
  <h2>Og managed classes</h2>
  
  <table>
    <tr>
      <th>Class</th>
      <th>Count</th>
      <th colspan="2">Cleanup</th>
      <th>Properties</th>
    </tr>
  <?r for c in @classes ?>
    <tr>
      <td><a href="#@base/#{c.name.plural.underscore}/list">#{c.name}</a></td>
      <td>#{c.count}</td>
      <td><a href="delete_all/#{c.name}" onclick="return confirm('Delete all instances?')">delete</a></td>
      <td><a href="destroy/#{c.name}" onclick="return confirm('Drop the schema?')">destroy</a></td>
      <td width="100%">#{c.properties.values.join(', ')}</td>
    </tr>
  <?r end ?>
  </table>
  
  <h2>System configuration</h2>
  
  <table width="100%">
    <tr>
      <th>Name</th>
      <th>Value</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  <?r  for s in Configuration.settings ?>
    <tr>
      <td>#{s.owner}.<strong>#{s.name}</strong></td>
      <td>#{s.value.inspect}</td>
      <td>#{s.type}</td>
      <td>#{s.options[:doc]}</td>
    </tr>
  <?r end ?>
  </table>
</SystemPage>  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.26.0 src/part/admin/template/index.xhtml
nitro-0.27.0 src/part/admin/template/index.xhtml