Permalink
Browse files

Remove leading space from link text parameter.

  • Loading branch information...
1 parent 105ae28 commit 4ddc2fd6ccdc40087fbb6daf74a24f9b426138b9 @rubyconsumer rubyconsumer committed Jan 11, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 app/helpers/icons_helper.rb
  2. +2 −2 app/views/articles/show.html.erb
@@ -1,15 +1,15 @@
module IconsHelper
def edit_icon(object, link_text = nil)
edit_icon_filename = 'page_edit.png'
- link_to image_tag(edit_icon_filename) + link_text,
+ link_to image_tag(edit_icon_filename) + " " + link_text,
edit_polymorphic_path(object)
end
def delete_icon(object, link_text = nil)
delete_icon_filename = 'cancel.png'
- link_to image_tag(delete_icon_filename) + link_text,
+ link_to image_tag(delete_icon_filename) + " " + link_text,
polymorphic_path(object),
:method => :delete,
:confirm => "Delete '#{object}'?"
end
-end
+end
@@ -6,8 +6,8 @@
<div class='article_actions'>
- <%= edit_icon(@article, " Edit") %>
- <%= delete_icon(@article, " Delete") %>
+ <%= edit_icon(@article, "Edit") %>
+ <%= delete_icon(@article, "Delete") %>
<%= link_to "Back to All Articles", articles_path %>
</div>

0 comments on commit 4ddc2fd

Please sign in to comment.