Refactored profile area

This commit is contained in:
Dmitriy Zaporozhets 2012-09-14 19:13:25 +03:00
parent 8f9a450eed
commit dc37c8aaae
15 changed files with 104 additions and 68 deletions

View file

@ -104,7 +104,8 @@ module ApplicationHelper
# Profile Area
when :profile; current_page?(controller: "profile", action: :show)
when :password; current_page?(controller: "profile", action: :password)
when :history; current_page?(controller: "profile", action: :history)
when :account; current_page?(controller: "profile", action: :account)
when :token; current_page?(controller: "profile", action: :token)
when :design; current_page?(controller: "profile", action: :design)
when :ssh_keys; controller.controller_name == "keys"