Sha256: 0bbb801a70baa0bac7e03f4a2dfb795e54eb1fe9e97ef08108dfe4f181c79999
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
<Page> <SitePath> <a href="/">#{Server.map['/'].ann.index[:title] || 'Home'}</a> / <a href="#{AdminController.mount_point}">Admin</a> / <a href="#{OgAdminController.mount_point}">Og</a> / <?r if action_name == 'list' ?> #{@klass.name.gsub(/::/, ' ').plural} <?r else ?> Search results <?r end ?> </SitePath> <?r unless @objects.empty? @headers = [ 'Name', ' ', ' ' ] @values = @objects.inject([]) do |v, o| v << [ %{<a href="#{R :update, :name, class_to_name(@klass), :oid, o.oid}">#{o}</a>}, %{<a href="#{R :update, :name, class_to_name(@klass), :oid, o.oid}">update</a>}, %{<a href="#{R :delete, :name, class_to_name(@klass), :oid, o.oid}" onclick="confirm('Are you sure?')">delete</a>} ] end ?> #{table :headers => @headers, :values => @values, :alternating_rows => true, :class => :data} <div class="pager" if="@pager and @pager.navigation?"> #{@pager.navigation} </div> <?r else ?> No objects. <?r end ?> </Page>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.41.0 | lib/part/admin/og/template/list.xhtml |
nitro-0.40.0 | lib/part/admin/og/template/list.xhtml |