Sha256: 121625e4b61e2f330d586dce0011b5f47edf0c91267e7b612e09641e9570cf95
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
<%= link_to 'New Task', blast.new_task_path, class: 'float-right btn btn-primary' %> <h2>Listing Tasks</h2> <hr> <div class="panel panel-primary"> <div class="panel-heading"> My Tasks </div> <table class="table"> <thead> <th>ID</th> <th>Title</th> <th>Content</th> <%- if Blast::Core.available?(:contacts) %> <th>Contact</th> <% end %> <th>Created At</th> <th></th> </thead> <tbody> <% @tasks.each do |task| %> <tr> <td><%= task.id %></td> <td><%= task.title %></td> <td><%= task.content %></td> <%- if Blast::Core.available?(:contacts) %> <td><%= task.contact.email if task.contact.present? %></td> <% end %> <td><%= task.created_at.strftime("%d %b. %Y") %></td> <td> <%= link_to 'Show', [blast, task], class: 'btn btn-primary' %> <%= link_to 'Edit', blast.edit_task_path(task), class: 'btn btn-primary' %> <%= link_to 'Destroy', [blast, task], class: 'btn btn-primary' , method: :delete, data: { confirm: 'Are you sure?' } %> </td> </tr> <% end %> </tbody> </table> </div> <br>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blast_tasks-0.0.1 | app/views/blast/tasks/tasks/index.html.erb |