Sha256: 345a3aef2756cb0f47165f586ccd7a5a57e1c4809ee00e17ce61f777635d7b9b

Contents?: true

Size: 891 Bytes

Versions: 1

Compression:

Stored size: 891 Bytes

Contents

<SystemPage>
  <?r base = "#{@base}/%base%" ?>
  <h1><a href="/"> Home</a> > <a href="#@base">System</a> > #{"%plural%".humanize}</h1>
  <a href="#{base}/new">New #{"%name%".humanize}</a>
  <p>
  <form action="#{base}/search">
    Search #{"%plural%".humanize}: <input type="text" name="q" />&nbsp;<input type="submit" value="Search" />
  </form>
  </p>
  <table>
  <?r for obj in @list ?>
    <tr>
      <td width="100%"><a href="#{base}/edit/#{obj.oid}">#(obj.to_s)</a></td>
      <?r if obj.respond_to?(:update_time) ?>
        <td nowrap="1">#{obj.update_time.stamp(:db)}</td>
      <?r end ?>
      <td><a href="#{base}/edit/#{obj.oid}">edit</a></td>
      <td><a href="#{base}/delete/#{obj.oid}" onclick="confirm('Are you sure?')">del</a></td>
    </tr>
  <?r end ?>
  </table>
  <div class="pager" if="@pager and @pager.navigation?">
    #{@pager.navigation}
  </div>  
</SystemPage>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.29.0 proto/public/scaffold/list.xhtml