Skip to content

Commit fd0828b

Browse files
committed
Show academic year when viewing programme
Now that we're showing programmes specific to the academic year we can show this in the heading as per the designs in the prototype.
1 parent c95734a commit fd0828b

6 files changed

Lines changed: 12 additions & 5 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<h1 class="nhsuk-heading-l nhsuk-u-margin-bottom-2">
2+
<%= @programme.name %>
3+
</h1>
4+
5+
<p class="nhsuk-caption-l nhsuk-u-margin-bottom-4">
6+
<%= format_academic_year(@academic_year) %>
7+
</p>

app/views/programmes/cohorts/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
]) %>
99
<% end %>
1010

11-
<h1 class="nhsuk-heading-l"><%= @programme.name %></h1>
11+
<%= render "programmes/heading" %>
1212

1313
<%= render AppProgrammeNavigationComponent.new(@programme, @academic_year, active: :cohorts) %>
1414

app/views/programmes/overview/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
]) %>
88
<% end %>
99

10-
<h1 class="nhsuk-heading-l"><%= @programme.name %></h1>
10+
<%= render "programmes/heading" %>
1111

1212
<%= render AppProgrammeNavigationComponent.new(@programme, @academic_year, active: :overview) %>
1313

app/views/programmes/patients/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
]) %>
99
<% end %>
1010

11-
<h1 class="nhsuk-heading-l"><%= @programme.name %></h1>
11+
<%= render "programmes/heading" %>
1212

1313
<%= render AppProgrammeNavigationComponent.new(@programme, @academic_year, active: :patients) %>
1414

app/views/programmes/sessions/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
]) %>
99
<% end %>
1010

11-
<h1 class="nhsuk-heading-l"><%= @programme.name %></h1>
11+
<%= render "programmes/heading" %>
1212

1313
<%= render AppProgrammeNavigationComponent.new(@programme, @academic_year, active: :sessions) %>
1414

app/views/programmes/vaccinations/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
]) %>
99
<% end %>
1010

11-
<h1 class="nhsuk-heading-l"><%= @programme.name %></h1>
11+
<%= render "programmes/heading" %>
1212

1313
<%= render AppProgrammeNavigationComponent.new(@programme, @academic_year, active: :vaccinations) %>
1414

0 commit comments

Comments
 (0)