summaryrefslogtreecommitdiff
path: root/app/views/common/_navigation_item.html.haml
blob: 39b20d7355bc6e93c5d51b3cdb2827fee8510430 (plain)
1
2
3
4
5
6
7
8
9
-#
-# A very simple navigation link. It takes a symbol, uses it for the
-# translation, path and determining if the link is active.
-#
-# For something more complex use link_to_navigation directly instead.
-#
- item = navigation_item.to_s
= link_to_navigation ".#{item}", polymorphic_url(item),
  active: controller?(item)