diff --git a/app/views/templates/_admin_nav_tabs.html.erb b/app/views/templates/_admin_nav_tabs.html.erb index 937faae..0399cc3 100644 --- a/app/views/templates/_admin_nav_tabs.html.erb +++ b/app/views/templates/_admin_nav_tabs.html.erb @@ -11,13 +11,13 @@ <% template.phases.each do |phase| %> - <% if active == phase.id %> -
  • - <% else %> -
  • - <% end %> - <%= link_to phase.title, admin_show_phase_path(phase.id) %> -
  • + <% if active == phase.id %> +
  • + <% else %> +
  • + <% end %> + <%= link_to phase.title, admin_show_phase_path(phase.id) %> +
  • <% end %> <% if current_user.can_org_admin? && @@ -25,14 +25,14 @@ current_user.org.funder? || (template.org == current_user.org)) %> <% if active == 'add_plan' %> -
  • - <% else %> -
  • - <% end %> - <% if @template == @current || @edit %> +
  • + <% else %> +
  • + <% end %> + <% if (@template == @current || @edit) && template.customization_of.nil? %> <%= link_to _('Add new phase +'), admin_add_phase_path(template) %> <% end %>
  • - <%end%> + <% end %>