Skip to content

Commit b87055e

Browse files
authored
Merge pull request #110 from companieshouse/PCI-554-change-view-all-tab-name
Pci 554 change view all tab name
2 parents 436c3e6 + db76a72 commit b87055e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/ChGovUk/Plugins/Routes.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ sub register {
7070
$company_bridge->get('/charges')->name('company_charges')->to('company-mortgages#view');
7171
$company_bridge->get('/charges/:charge_id')->name('company_charge_with_id')->to('company-mortgages#view_details');
7272
$company_bridge->get('/ukestablishments')->name('company_branches')->to('company-branches#view');
73-
$company_bridge->get('/view-all')->name("company_view_all")->to('company-view_all#view');
73+
$company_bridge->get('/more')->name("company_view_all")->to('company-view_all#view');
7474

7575
# PSCs route
7676
$company_bridge->get('/persons-with-significant-control')->name('list_pscs')->to('company-pscs#list');

templates/company/view_all/view.html.tx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
% if $show_snapshot {
66
% include '/includes/company/page_header.tx'
77

8-
% include '/includes/company/tabs.tx' { active => 'view-all-tab' };
8+
% include '/includes/company/tabs.tx' { active => 'more-tab' };
99
<h2 id="company-snapshot-header" class="heading-large">
1010
Company snapshot <%$company_type%>
1111
</h2>
@@ -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" data-event-id="View company information snapshot" 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">
@@ -47,7 +47,7 @@
4747
</div>
4848
<div id="download-button"></div>
4949
% } else {
50-
<a class="govuk-button secondary-button" data-event-id="View company information snapshot" 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
5151
<span class="govuk-visually-hidden">link opens in new tab/window</span></a>
5252
% }
5353
% }
@@ -71,7 +71,7 @@
7171
</ul>
7272
</div>
7373
</details>
74-
<a class="govuk-button secondary-button" data-event-id="Order a certificate" href="<% $c.url_for('/orderable/certificates') %>">Order certificate</a>
74+
<a class="govuk-button secondary-button piwik-event" data-event-id="Order a certificate" href="<% $c.url_for('/orderable/certificates') %>">Order certificate</a>
7575
% }
7676
% }
7777
% }

templates/includes/company/tabs.tx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
% if $c.config.feature.company_report {
2525
% if $company.type != "assurance-company" && $company.type != "industrial-and-provident-society" && $company.type != "royal-charter" && $company.type != "investment-company-with-variable-capital" && $company.type != "charitable-incorporated-organisation" && $company.type != "scottish-charitable-incorporated-organisation" && $company.type != "uk-establishment" && $company.type != "registered-society-non-jurisdictional" && $company.type != "protected-cell-company" && $company.type != "eeig" && $company.type != "protected-cell-company" && $company.type != "further-education-or-sixth-form-college-corporation" && $company.type != "icvc-securities" && $company.type != "icvc-warrant" && $company.type != "icvc-umbrella" {
26-
% include "/includes/company/tab.tx" { tabid => 'view-all-tab', page => '/view-all', title => 'View all'};
26+
% include "/includes/company/tab.tx" { tabid => 'more-tab', page => '/more', title => 'More'};
2727
% }
2828
% }
2929
</ul>

templates/includes/piwik.tx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
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']);
46+
else if (docTitle.match(/More \(free company information from Companies House\)$/)) {
47+
_paq.push(['setDocumentTitle','More']);
4848
}
4949

5050
_paq.push(['setCustomVariable', 1,'VisitorStatus',<% if $c.is_signed_in { %>'SignedIn'<% } else { %>'NotSignedIn'<% } %>,'visit']);

0 commit comments

Comments
 (0)