app/views/lentil/images/_flagging_modal.html.erb in lentil-0.0.1.pre vs app/views/lentil/images/_flagging_modal.html.erb in lentil-0.0.2.pre
- old
+ new
@@ -6,13 +6,9 @@
<div class="modal-body">
<p><%= t 'lentil.flagging_modal.header' %></p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><%= t 'lentil.flagging_modal.cancel' %></button>
- <%= link_to( t('lentil.flagging_modal.yes_report'),
- tally_flag_path(image.id),
- :method => :post,
- :rel => 'no-follow',
- :class => 'btn btn-danger flag-confirm',
- :title => t('lentil.flagging_modal.yes_report_title')) %>
- </div>
+ <button href="<%= tally_flag_path(image.id) %>" method="post" type="submit" class="btn btn-danger flag-confirm" data-image-id="<%= image.id %>">
+ <%= t 'lentil.flagging_modal.yes_report_title' %></button>
+</div>
</div>
\ No newline at end of file