diff --git a/app/views/plans/_plan_details.html.erb b/app/views/plans/_plan_details.html.erb index 9ed400a..541b97b 100644 --- a/app/views/plans/_plan_details.html.erb +++ b/app/views/plans/_plan_details.html.erb @@ -196,117 +196,117 @@
-- <% if based_on.org != plan.template.org %> - <%= _('A version of ') %> "<%= based_on.title %>" <%= based_on.title.downcase.end_with?('template') ? '' : _('template') %><%= _(' that has been customised by ') %> <%= plan.template.org.name %> - <% else %> - <%= _('The')%> "<%= plan.template.title %>" <%= (plan.template.is_default ? _('generic template') : plan.template.title.downcase.end_with?('template') ? '' : _('template')) %> <%= _(' provided by ') %><%= plan.template.org.name %> - <% end %> -
++ <% if based_on.org != plan.template.org %> + <%= _('A version of ') %> "<%= based_on.title %>" <%= based_on.title.downcase.include?(_('template')) ? '' : _('template') %><%= _(' that has been customised by ') %> <%= plan.template.org.name %> + <% else %> + <%= _('The')%> "<%= plan.template.title %>" <%= (plan.template.is_default ? _('generic template') : plan.template.title.downcase.include?(_('template')) ? '' : _('template')) %> <%= _(' provided by ') %><%= plan.template.org.name %> + <% end %> +
- + <% phases = plan.template.phases %> - <% if phases.count == 1 %> - <% phases.each do |phase| %> -<%= raw phase.description %>
- <% if phase.sections.any? %> -| <%= _('Sections')%> | -<%= _('Questions')%> | -
|---|---|
|
- <%= section.title %> - |
-
- <% if section.questions.any? %>
-
|
-
<%= raw phase.description %>
+ <% if phase.sections.any? %> +| <%= _('Sections')%> | +<%= _('Questions')%> | +
|---|---|
|
+ <%= section.title %> + |
+
+ <% if section.questions.any? %>
+
|
+
<%= raw phase.description %> -
+<%= raw phase.description %> +
- <% if phase.sections.any? %> -| <%= _('Sections')%> | -<%= _('Questions')%> | -
|---|---|
|
- <%= section.title %> - |
-
- <% if section.questions.any? %>
-
|
-
| <%= _('Sections')%> | +<%= _('Questions')%> | +
|---|---|
|
+ <%= section.title %> + |
+
+ <% if section.questions.any? %>
+
|
+