Sha256: e428505c1881dad141a639f420047e7465af2029788512d2eb041fc156e91f61
Contents?: true
Size: 949 Bytes
Versions: 2
Compression:
Stored size: 949 Bytes
Contents
<div class="projects"> <h2>Projects</h2> <table> <thead> <tr> <th>Title</th> <th>Description</th> <% if user.can_edit? CortexReaver::Project.new %> <th></th> <% end %> <% if user.can_delete? CortexReaver::Project.new %> <th></th> <% end %> </tr> </thead> <tbody> <% @projects.each do |project| %> <tr> <td><%= A(project.title, :href => project.url) %></td> <td><%= project.description %></td> <% if user.can_edit? project %> <td><a href="/projects/edit/<%= project.name %>">Edit</a></td> <% end %> <% if user.can_delete? project %> <td><%= A 'Delete', :href => "/projects/delete/#{project.name}", :onclick => "return confirm('Are you sure you want to delete this project?');" %></td> <% end %> </tr> <% end %> </tbody> </table> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cortex-reaver-0.0.8 | lib/cortex_reaver/view/projects/list.rhtml |
cortex-reaver-0.0.9 | lib/cortex_reaver/view/projects/list.rhtml |