Skip to content

Commit

Permalink
Rails calls image_path for us.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmazza committed Aug 11, 2011
1 parent ca0bf32 commit a3aaedd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/rails_admin/main/_submit_buttons.html.haml
@@ -1,15 +1,15 @@
.group.navform.wat-cf
%button.button{:type => "submit", :name => "_save"}
= image_tag(image_path("rails_admin/theme/activo/images/icons/tick.png"), :alt => t("admin.new.save"))
= image_tag("rails_admin/theme/activo/images/icons/tick.png", :alt => t("admin.new.save"))
= t("admin.new.save")
%span.extra_buttons
- if authorized? :new, @abstract_model
%button.button{:type => "submit", :name => "_add_another"}
= image_tag(image_path("rails_admin/theme/activo/images/icons/add.png"), :alt => t("admin.new.save_and_add_another"))
= image_tag("rails_admin/theme/activo/images/icons/add.png", :alt => t("admin.new.save_and_add_another"))
= t("admin.new.save_and_add_another")
%button.button{:type => "submit", :name => "_add_edit"}
= image_tag(image_path("rails_admin/theme/activo/images/icons/edit.png"), :alt => t("admin.new.save_and_edit"))
= image_tag("rails_admin/theme/activo/images/icons/edit.png", :alt => t("admin.new.save_and_edit"))
= t("admin.new.save_and_edit")
%button.button{:type => "submit", :name => "_continue"}
= image_tag(image_path("rails_admin/theme/activo/images/icons/delete.png"), :alt => t("admin.new.cancel"))
= image_tag("rails_admin/theme/activo/images/icons/delete.png", :alt => t("admin.new.cancel"))
= t("admin.new.cancel")

0 comments on commit a3aaedd

Please sign in to comment.