Permalink
Browse files

Start pushing view logic into a helper

  • Loading branch information...
1 parent a26ccfb commit 89fd414987858e53c544872188374f8bd221b7c0 Jacqui Maher committed Feb 29, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 app/helpers/translator/translations_helper.rb
View
11 app/helpers/translator/translations_helper.rb
@@ -0,0 +1,11 @@
+module Translator
+ module TranslationsHelper
+
+ def group_links
+ output = content_tag(:li, link_to_unless_current("Application", translations_group_path("application"), :class => 'button'))
+ output += content_tag(:li, link_to_unless_current("Framework", translations_group_path("framework"), :class => 'button'))
+ output += content_tag(:li, link_to_unless_current("Deleted", translations_group_path("deleted"), :class => 'button'))
+ output.html_safe
+ end
+ end
+end

0 comments on commit 89fd414

Please sign in to comment.