Sha256: ae9b883365bd3d36ff701bdd8fd9de89e98a719beaa8669ccd61a028e5e43e96
Contents?: true
Size: 689 Bytes
Versions: 6
Compression:
Stored size: 689 Bytes
Contents
<div class="pages"> <table> <thead> <tr> <th>Name</th> <th>Title</th> <% if admin? %> <th></th> <th></th> <% end %> </tr> </thead> <tbody> <% @pages.each do |page| %> <tr> <td><%= A(page.name, :href => page.url) %></td> <td><%= page.title %></td> <% if admin? %> <td><a href="/pages/edit/<%= page.name %>">Edit</a></td> <td><%= A 'Delete', :href => "/page/delete/#{page.name}", :onclick => "return confirm('Are you sure you want to delete this page?');" %></td> <% end %> </tr> <% end %> </tbody> </table> </div>
Version data entries
6 entries across 6 versions & 1 rubygems