Sha256: ce9c2f9bbd8ab466e34f70979eea48c6359cd3271ad122e4cbc14eed4a4632d6

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/#{Scaffolding.class_to_path(c).plural}/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 @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.29.0 src/part/admin/template/index.xhtml
nitro-0.30.0 src/part/admin/template/index.xhtml