Sha256: 0ca403e45445ff609d58ececf18ba9c631b28e32fde32fb0f601a8665a9b4e70

Contents?: true

Size: 609 Bytes

Versions: 7

Compression:

Stored size: 609 Bytes

Contents

<% if button_type == :text -%>
  <%= link_to_remote( button_text, :url => activity_path(activity, :format => 'js'), :method => :delete) %>
<% else -%>
  <% remote_form_for(:activity, :url => activity_path(activity, :format => 'js'), :html => { :class => "delete-form activity-delete", :method => :delete } ) do |f| -%>
    <% if button_type == :image -%>
      <%= image_submit_tag '/images/icons/delete.png', {:title => button_text, :width => '15', :height => '15', :alt => button_text } %>
    <% else -%>
      <%= submit_tag button_text, { :title => button_text } %>
    <% end -%>
  <% end -%>
<% end -%>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
muck-activity-0.1.2 app/views/activities/_delete.html.erb
muck-activity-0.1.3 app/views/activities/_delete.html.erb
muck-activity-0.1.4 app/views/activities/_delete.html.erb
muck-activity-0.1.5 app/views/activities/_delete.html.erb
muck-activity-0.1.6 app/views/activities/_delete.html.erb
muck-activities-0.1.7 app/views/activities/_delete.html.erb
muck-activity-0.1.1 app/views/activities/_delete.html.erb