Skip to content

Instantly share code, notes, and snippets.

@futhr
Created July 29, 2013 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save futhr/6107141 to your computer and use it in GitHub Desktop.
Save futhr/6107141 to your computer and use it in GitHub Desktop.
Extend Spree::Admin::NavigationHelper with new link button.
module Spree
module Admin
module NavigationHelper
def link_to_translation(resource)
link_to_with_icon 'icon-flag no-text', '',
admin_translations_path(resource.to_s.pluralize, resource.id),
title: Spree.t(:translations)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment