Sha256: 13c4e1cb7bf0b6ab4589042490a6f96e0ec0d9b2aaa063dc1b41b396101da6f9

Contents?: true

Size: 279 Bytes

Versions: 13

Compression:

Stored size: 279 Bytes

Contents

<% if resource.respond_to? :state_events %>
  <% resource.state_events.select{|event| can? event, resource }.each do |event| %>
<li>
  <%= link_to t("#{type}.show.events.#{event}"), eval("#{event}_#{type.singularize}_path(resource)"), method: :put %> 
</li>
  <% end %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
voluntary-0.2.4 app/views/shared/resource/_event_elements.html.erb
voluntary-0.2.3 app/views/shared/resource/_event_elements.html.erb
voluntary-0.2.2 app/views/shared/resource/_event_elements.html.erb
voluntary-0.2.1 app/views/shared/resource/_event_elements.html.erb
voluntary-0.2.0 app/views/shared/resource/_event_elements.html.erb
voluntary-0.1.0 app/views/shared/resource/_event_elements.html.erb
voluntary-0.1.0.rc4 app/views/shared/resource/_event_elements.html.erb
voluntary-0.1.0.rc3 app/views/shared/resource/_event_elements.html.erb
voluntary-0.1.0.rc2 app/views/shared/resource/_event_elements.html.erb
voluntary-0.1.0.rc1 app/views/shared/resource/_event_elements.html.erb
voluntary-0.0.3 app/views/shared/resource/_event_elements.html.erb
voluntary-0.0.2 app/views/shared/resource/_event_elements.html.erb
voluntary-0.0.1 app/views/shared/resource/_event_elements.html.erb