Permalink
Browse files

Added helper and icon.

  • Loading branch information...
joost committed May 7, 2012
1 parent 32ffdb1 commit 42671c63aa264b0fa6e5f01cbdae18550d7bbc38
Showing with 2 additions and 1 deletion.
  1. +1 −1 app/helpers/admin/base_helper.rb
  2. +1 −0 vendor/assets/stylesheets/admin_interface.css.scss
@@ -41,7 +41,7 @@ def l(time)
# This is a replacement for Ransack's sort_link (https://github.com/ernie/ransack/blob/master/lib/ransack/helpers/form_helper.rb).
# It works for @search stuff and without @search stuff.
def order_link(ransack, attribute, options = {})
- search ? sort_link(ransack, attribute, options) : attribute.to_s.humanize # FIXME: Model.human_attribute_name("title")
+ ransack ? sort_link(ransack, attribute, options) : attribute.to_s.humanize # FIXME: Model.human_attribute_name("title")
end
# Following are extra helper for kaminari gem (pagination).
@@ -937,6 +937,7 @@ padding-bottom: 3px;
.icon-view { background-image: image-url('admin/view.png'); }
.icon-map { background-image: image-url('admin/map.png'); }
.icon-world { background-image: image-url('admin/world.png'); }
+.icon-page-go { background-image: image-url('admin/page_go.png'); }
.icon-file { background-image: image-url('admin/files/default.png'); }
.icon-file.text-plain { background-image: image-url('admin/files/text.png'); }

0 comments on commit 42671c6

Please sign in to comment.