Sha256: a9e9edd777155c2723af1cd1d28078fca0a524faaf8ad5cb50323acb37f8dd9e
Contents?: true
Size: 1.28 KB
Versions: 8
Compression:
Stored size: 1.28 KB
Contents
<%- model_class = PublicKey -%> <div class="page-header"> <h1><%=t '.title', :default => model_class.model_name.human.pluralize %></h1> </div> <table class="table table-striped"> <thead> <tr> <th><%= model_class.human_attribute_name(:comment) %></th> <th><%= model_class.human_attribute_name(:created_at) %></th> <th><%=t '.actions', :default => t("helpers.actions") %></th> </tr> </thead> <tbody> <% @public_keys.each do |public_key| %> <tr> <td><%= link_to public_key.comment, public_key_path(public_key) %></td> <td><%=l public_key.created_at %></td> <td> <% if can? :destroy, public_key %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), public_key_path(public_key), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger' %> <% end %> </td> </tr> <% end %> </tbody> </table> <% if can? :create, PublicKey %> <%= link_to t('.new', :default => t("helpers.links.new")), new_public_key_path, :class => 'btn btn-primary' %> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems