Daniel Ritz wrote:
Anyways, please have a look at v2 of the patch w/o the helpers.
Missed one:
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb
index 0390964..2178e1c 100644
--- a/app/views/news/show.html.erb
+++ b/app/views/news/show.html.erb
@@ -36,7 +36,7 @@
<% @comments.each do |comment| %>
<% next if comment.new_record? %>
<div class="contextual">
- <%= link_to_if_authorized '', {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
+ <%= link_to_if_authorized l(:button_delete), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete,
:title => l(:button_delete),
:class => 'icon-only icon-del' %>
Found it because it broke badly. With the CSS in v2, a <a class="icon-only icon-del"></a>
without any content inside the tag like the one I missed will not show anything at all in the browser, link completely gone. The display:inline-block"
is necessary to make it work with content, but breaks w/o content...it's fixable with this:
a.icon-only::after {
content: " ";
}
Not all that pretty, but seems to work...Fixed patch attached.