Sha256: 59bbba4c425fe4063d127583607b400044d9988e5b56613429660b5b5049e218
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
<% content_for :page_title do %> <%= Spree.t(:edrone_module) %> <% end %> <% content_for :page_actions do %> <% if !@edrones.any? %> <%= button_link_to Spree.t(:integrate_with_edrone), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_tracker_link' %> <% end %> <% end if can? :create, Spree::Edrone %> <% if @edrones.any? %> <table class="table"> <colgroup> <col style="width: 30%"> <col style="width: 40%"> <col style="width: 15%"> <col style="width: 15%"> </colgroup> <thead> <tr data-hook="admin_trackers_index_headers"> <th><%= Spree.t(:app_id) %></th> <th><%= Spree.t(:app_secret) %></th> <th class="text-center"><%= Spree.t(:active) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @edrones.each do |edrone|%> <tr id="<%= spree_dom_id edrone %>" data-hook="admin_trackers_index_rows"> <td><%= edrone.edrone_app_id %></td> <td><%= edrone.edrone_app_secret %></td> <td class="text-center"><%= edrone.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td> <td class="actions text-right"> <%= link_to_edit(edrone, no_text: true) if can? :edit, edrone %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="alert alert-warning"> <%= link_to(Spree.t(:integrate_with_edrone), new_object_url) if can? :create, Spree::Edrone %>! </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_edrone-1.0.2 | app/views/spree/admin/edrones/index.html.erb |
spree_edrone-1.0.1 | app/views/spree/admin/edrones/index.html.erb |