Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double icon for "Remove" link in index view #4

Open
muellermartin opened this issue Jul 25, 2010 · 0 comments
Open

Double icon for "Remove" link in index view #4

muellermartin opened this issue Jul 25, 2010 · 0 comments

Comments

@muellermartin
Copy link

In Radiant 0.9.1 the icon of the "Remove" link in the index view of the "CSS" and "JS" tab appears twice, because it is added by the "remove" class in the admin design and by the image in the "Styles 'n Scripts" extension.

This patch would fix this issue:

--- index.html.haml     2010-07-25 12:01:37.000000000 +0200
+++ /var/www/mueller-martin.net/vendor/extensions/sns/app/views/admin/text_assets/index.html.haml       2010-07-25 12:02:40.000000000 +0200
@@ -46,7 +46,7 @@
             = image("sns/#{model_symbol}", :alt => "#{model_name}-icon", :title => text_asset.url)
             %span= link_to(text_asset.name, send("edit_admin_#{model_symbol}_path", :id => text_asset), :title => text_asset.url)
           %td.remove
-            = link_to image('remove', :alt => "Remove #{model_name}"), send("remove_admin_#{model_symbol}_path", :id => text_asset)
+            = link_to t('remove'), send("remove_admin_#{model_symbol}_path", :id => text_asset)
     - else
       %tr
         %td.note{:colspan => 2}== No #{plural_model_name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant