Skip to content

Instantly share code, notes, and snippets.

@biscuitvile
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save biscuitvile/9902525 to your computer and use it in GitHub Desktop.

Select an option

Save biscuitvile/9902525 to your computer and use it in GitHub Desktop.
Helper
def stats_panel_toggle
title = i18n_concat(
t('admin.dashboard.visitors-daily'),
t('admin.dashboard.visitors')
)
link_to 'Y', '#daily_stat',
class: 'icon panel_toggle_trigger',
data: { title: title }
end
def i18n_concat(*args)
args.join(" ")
end
= stats_panel_toggle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment