Sha256: 1e44a8a497f5b55a11092486cfeb9fc23a56307be671dbbbf215c671a61be9e7
Contents?: true
Size: 875 Bytes
Versions: 3
Compression:
Stored size: 875 Bytes
Contents
<h1>Dashboards</h1> <p> <% if @dashboards.present? %> <table class="table"> <thead> <tr> <th>Dashboard</th> <th></th> </tr> </thead> <tbody> <% for dashboard in @dashboards %> <tr> <td> <%= link_to dashboard.title, dashboard_path(dashboard) %> </td> <td> <%= link_to 'Edit', edit_dashboard_path(dashboard), class: 'btn btn-primary' %> <%= link_to 'Delete', dashboard_path(dashboard), method: 'delete', class: 'btn btn-danger', data: {confirm: "Are you sure?"} %> </td> </tr> <% end %> </body> </table> <% else %> You currently don't have any dashboard. Click the button bellow to create your first! <% end %> </p> <a href="<%= new_dashboard_path %>" class="btn btn-success">New Dashboard</a>
Version data entries
3 entries across 3 versions & 1 rubygems