Permalink
Browse files

Merge branch 'master' of github.com:JumpstartLab/jsblogger_advanced

  • Loading branch information...
2 parents 3c66a9d + 2a11d98 commit da68bbcbb13b683005d10971e6a25152909b4f84 @jcasimir jcasimir committed Mar 22, 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 da68bbc

Please sign in to comment.