Allow moderators to moderate investments

This commit is contained in:
Angel Perez
2018-06-18 13:10:58 -04:00
parent 4da23716bb
commit c64e93867a
6 changed files with 148 additions and 3 deletions

View File

@@ -1,15 +1,27 @@
module AdminHelper
def side_menu
render "/#{namespace}/menu"
if namespace == 'moderation/budgets'
render "/moderation/menu"
else
render "/#{namespace}/menu"
end
end
def namespaced_root_path
"/#{namespace}"
if namespace == 'moderation/budgets'
"/moderation"
else
"/#{namespace}"
end
end
def namespaced_header_title
t("#{namespace}.header.title")
if namespace == 'moderation/budgets'
t("moderation.header.title")
else
t("#{namespace}.header.title")
end
end
def menu_moderated_content?