|
@ -966,12 +966,14 @@ module ApplicationHelper |
|
|
|
|
|
|
|
|
def admin_menu |
|
|
def admin_menu |
|
|
steps = '' |
|
|
steps = '' |
|
|
|
|
|
first = true |
|
|
admin_steps.each do | step | |
|
|
admin_steps.each do | step | |
|
|
steps += content_tag(:li, class: (step.to_s == @admin_step ? :current : nil)) do |
|
|
steps += content_tag(:li, class: (step.to_s == @admin_step ? :current : nil)) do |
|
|
link_to _("menu.submenu.admin.#{step.to_s.titlecase.gsub(/\s/, '_')}"), step == :edit ? |
|
|
link_to _("menu.submenu.admin.#{step.to_s.titlecase.gsub(/\s/, '_')}"), first ? |
|
|
register_step_path(@this_conference.slug, :administration) : |
|
|
register_step_path(@this_conference.slug, :administration) : |
|
|
administration_step_path(@this_conference.slug, step.to_s) |
|
|
administration_step_path(@this_conference.slug, step.to_s) |
|
|
end |
|
|
end |
|
|
|
|
|
first = false |
|
|
end |
|
|
end |
|
|
content_tag :ul, steps.html_safe, id: 'registration-admin-menu' |
|
|
content_tag :ul, steps.html_safe, id: 'registration-admin-menu' |
|
|
end |
|
|
end |
|
|