Skip to content

Commit 801aa7e

Browse files
authored
Merge pull request #93 from companieshouse/release/4.36.0
Release/4.36.0
2 parents 5cf42c9 + eb745e4 commit 801aa7e

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

templates/company/view_all/view.html.tx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% cascade base { title=> $company.company_name ~" - Overview (free company information from Companies House)", classes=>"profile" }
1+
% cascade base { title=> $company.company_name ~" - View all (free company information from Companies House)", classes=>"profile" }
22

33
% around content -> {
44

@@ -31,7 +31,7 @@
3131
% if $c.is_signed_in {
3232
<div class="govuk-inset-text onlyJS">
3333
<div id="widget">
34-
<a class="render-document govuk-button secondary-button" href="#">View company information snapshot
34+
<a class="render-document govuk-button secondary-button piwik-event" data-event-id="View company information snapshot" href="#">View company information snapshot
3535
<span class="govuk-visually-hidden">link opens in new tab/window</span></a>
3636
<div id="status-widget" class="widget-footer hidden">
3737
<div id="status">
@@ -45,10 +45,9 @@
4545
</div>
4646
</div>
4747
</div>
48-
</div>
49-
<div id="download-button"></div>
48+
<div id="download-button"></div>
5049
% } else {
51-
<a class="govuk-button secondary-button" href="<% $c.url_for('user_sign_in') %>">View company information snapshot
50+
<a class="govuk-button secondary-button piwik-event" data-event-id="View company information snapshot" href="<% $c.url_for('user_sign_in') %>">View company information snapshot
5251
<span class="govuk-visually-hidden">link opens in new tab/window</span></a>
5352
% }
5453

templates/includes/company/tab.tx

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
1-
%# This include takes:
2-
%# $active - the ID of the tab to make active
3-
%# $tabid - the ID of _this_ tab
4-
%# $page - the URL relative to /company/{company_number} that this tab links to
5-
%# $title - the title heading of the tab (may contain HTML)
6-
%# $company - the company details needed for display (uses company.company_number)
1+
%# This include takes:
2+
%# $active - the ID of the tab to make active
3+
%# $tabid - the ID of _this_ tab
4+
%# $page - the URL relative to /company/{company_number} that this tab links to
5+
%# $title - the title heading of the tab (may contain HTML)
6+
%# $company - the company details needed for display (uses company.company_number)
77

8-
<li <% ($active == $tabid ? 'class="active"' : '') | raw %> >
8+
<li <% ($active == $tabid ? 'class="active"' : '') | raw %> >
99

10-
% if ( $active == $tabid ) { "<h1>" | raw }
11-
% if ( $tabid == 'view-all-tab' ) {
12-
% if ( $active == $tabid ) {
13-
<a id="<% $tabid %>" href="<% $c.url_for('/company/' ~ $company.company_number ~ $page) %>"><% $title|raw %><span class="visuallyhidden"> for <% $company.company_name %> (<% $company.company_number %>)</span></a>
14-
% } else {
15-
<a class="more-tab" id="<% $tabid %>" href="<% $c.url_for('/company/' ~ $company.company_number ~ $page) %>"><% $title|raw %><span class="visuallyhidden"> for <% $company.company_name %> (<% $company.company_number %>)</span></a>
16-
% }
17-
% } else {
18-
<a id="<% $tabid %>" href="<% $c.url_for('/company/' ~ $company.company_number ~ $page) %>"><% $title|raw %><span class="visuallyhidden"> for <% $company.company_name %> (<% $company.company_number %>)</span></a>
19-
% }
20-
% if ( $active == $tabid ) { "</h1>" | raw }
10+
% if ( $active == $tabid ) { "<h1>" | raw }
11+
<a id="<% $tabid %>" href="<% $c.url_for('/company/' ~ $company.company_number ~ $page) %>"><% $title|raw %><span class="visuallyhidden"> for <% $company.company_name %> (<% $company.company_number %>)</span></a>
12+
% if ( $active == $tabid ) { "</h1>" | raw }
2113

22-
</li>
14+
</li>

templates/includes/piwik.tx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
else if (docTitle.match(/Mortgages \(free information from Companies House\)$/)){
4444
_paq.push(['setDocumentTitle','Charges ']);
4545
}
46+
else if (docTitle.match(/View all \(free company information from Companies House\)$/)) {
47+
_paq.push(['setDocumentTitle','View all']);
48+
}
4649

4750
_paq.push(['setCustomVariable', 1,'VisitorStatus',<% if $c.is_signed_in { %>'SignedIn'<% } else { %>'NotSignedIn'<% } %>,'visit']);
4851
_paq.push(['setCustomVariable', 2,'CompanyStatus',<% if $company.company_number == $c.authorised_company {%>'Authorised'<% } else { %>'NotAuthorised'<% } %>,'visit']);

0 commit comments

Comments
 (0)