Skip to content

Commit cc372f4

Browse files
TD-1943 adding header and aligning the header in the mobile view of cookie policy
1 parent 9f4f867 commit cc372f4

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

DigitalLearningSolutions.Data.Migrations/2023090611401334_updateCookiePolicyContentHtml.cs

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

88
namespace DigitalLearningSolutions.Data.Migrations
99
{
10-
[Migration(202309061452)]
10+
[Migration(202309131452)]
1111

1212
public class UpdateCookiePolicyContentHtml : Migration
1313
{

DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DigitalLearningSolutions.Data.Migrations/Properties/Resources.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@
301301
<data name="TermsConditions" type="System.Resources.ResXFileRef, System.Windows.Forms">
302302
<value>..\Resources\TermsConditions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
303303
</data>
304-
<data name="TD_1943_CookiePolicyContentHtml" type="System.Resources.ResXFileRef, System.Windows.Forms">
305-
<value>..\Resources\TD_1943_CookiePolicyContentHtml.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
306-
</data>
307304
<data name="TD_1943_CookiePolicyContentHtmlOldRecord" type="System.Resources.ResXFileRef, System.Windows.Forms">
308305
<value>..\Resources\TD_1943_CookiePolicyContentHtmlOldRecord.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
309306
</data>
307+
<data name="TD_1943_CookiePolicyContentHtml" type="System.Resources.ResXFileRef, System.Windows.Forms">
308+
<value>..\Resources\TD_1943_CookiePolicyContentHtml.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
309+
</data>
310310
</root>

DigitalLearningSolutions.Data.Migrations/Resources/TD_1943_CookiePolicyContentHtml.txt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<div class=nhsuk-u-reading-width>
1+
2+
<div class=nhsuk-u-reading-width>
23
<h2>What are cookies?</h2>
34
<p>Cookies are files saved on your phone, tablet or computer when you visit a website.</p>
45
<p>They store information about how you use the website, such as the pages you visit.</p>
@@ -10,7 +11,7 @@
1011
</li>
1112
</ul>
1213
<p>We do not use any other cookies, for example, cookies that remember your settings or cookies that help with health campaigns.</p>
13-
<p>We sometimes use tools on other organisations'' websites to collect data or to ask for feedback. These tools set their own cookies.</p>
14+
<p>We sometimes use tools on other organisations' websites to collect data or to ask for feedback. These tools set their own cookies.</p>
1415
<h2>Cookies that make our website work</h2><p>We use cookies to keep our website secure and fast.</p></div>
1516
<details class="nhsuk-details">
1617
<summary class="nhsuk-details__summary">
@@ -37,7 +38,7 @@ ASP.NET_SessionId</td>
3738
<a href=http://www.dls.nhs.uk/ data-cke-saved-href=http://www.dls.nhs.uk/ title=http://www.dls.nhs.uk>www.dls.nhs.uk</a></td>
3839
<td class="nhsuk-table__cell" data-label="Purpose" role="cell">
3940
<span class="nhsuk-table-responsive__heading">Purpose</span>
40-
Used to remember the users'' session on the web server.</td>
41+
Used to remember the users' session on the web server.</td>
4142
<td class="nhsuk-table__cell" data-label="Expiry" role="cell">
4243
<span class="nhsuk-table-responsive__heading">Expiry</span>
4344
When you close the browser</td>
@@ -54,7 +55,7 @@ When you close the browser</td>
5455
Remembers your login user details.</td>
5556
<td class="nhsuk-table__cell" data-label="Expiry" role="cell">
5657
<span class="nhsuk-table-responsive__heading">Expiry</span>
57-
When you close the browser or after 14 days if you tick “Remember me” when logging in</td>
58+
When you close the browser or after 14 days if you tick “Remember me” when logging in</td>
5859
</tr>
5960
<tr class="nhsuk-table__row" role="row">
6061
<td class="nhsuk-table__cell" data-label="Cookie name"role="cell"><span class="nhsuk-table-responsive__heading">Cookie name</span>.AspNetCore.Antiforgery.KCJdAkfXyjI</td>
@@ -102,8 +103,8 @@ When you close the browser (if you do not use the banner) or 1 year (if you use
102103
<p><a href=http://www.dls.nhs.uk/ data-cke-saved-href=http://www.dls.nhs.uk/ title=http://www.dls.nhs.uk>www.dls.nhs.uk</a></td>
103104
<td class="nhsuk-table__cell" data-label="Purpose" role="cell">
104105
<span class="nhsuk-table-responsive__heading">Purpose</span>
105-
<p>Several of these are used to remember your filter selections when using the application. Including:
106-
<ul><li>AdminFilter<li>DelegateFilter<li>DelegateGroupsFilter<li>CourseFilter</ul></td>
106+
<div><p>Several of these are used to remember your filter selections when using the application. Including:
107+
<ul><li>AdminFilter<li>DelegateFilter<li>DelegateGroupsFilter<li>CourseFilter</ul></div></td>
107108
<td class="nhsuk-table__cell" data-label="Expiry" role="cell">
108109
<span class="nhsuk-table-responsive__heading">Expiry</span>5 months </td>
109110
</tr>
@@ -126,7 +127,7 @@ Legacy tracking system cookies</td>
126127
<p><a href=http://www.dls.nhs.uk/ data-cke-saved-href=http://www.dls.nhs.uk/ title=http://www.dls.nhs.uk>www.dls.nhs.uk</a></td>
127128
<td class="nhsuk-table__cell" data-label="Purpose" role="cell">
128129
<span class="nhsuk-table-responsive__heading">Purpose</span>
129-
<p>Several of these are used to remember your grid search, filter and sort selections when using the legacy applications. Including:<ul><li>cms_courses_aspx_MainContent_<ul><li>bsgvCourses</ul><li>tracking_tickets_aspx_MainContent_<ul><li>bsgvTickets<li>bsgvCentreDelegates<li>bsgvCustomisations<li>bsgvAdminUsers<li>bsgvSuperviseDelegates</ul></ul></td>
130+
<div><p>Several of these are used to remember your grid search, filter and sort selections when using the legacy applications. Including:<ul><li>cms_courses_aspx_MainContent_<ul><li>bsgvCourses</ul><li>tracking_tickets_aspx_MainContent_<ul><li>bsgvTickets<li>bsgvCentreDelegates<li>bsgvCustomisations<li>bsgvAdminUsers<li>bsgvSuperviseDelegates</ul></ul></div></td>
130131
<td class="nhsuk-table__cell" data-label="Expiry" role="cell"><span class="nhsuk-table-responsive__heading">Expiry</span>12 months</td>
131132
</tr>
132133
<tr class="nhsuk-table__row" role="row">
@@ -172,7 +173,7 @@ Google analytics cookies</td>
172173
<a href=http://www.dls.nhs.uk/ data-cke-saved-href=http://www.dls.nhs.uk/ title=http://www.dls.nhs.uk>www.dls.nhs.uk</a></td>
173174
<td class="nhsuk-table__cell" data-label="Purpose" role="cell">
174175
<span class="nhsuk-table-responsive__heading">Purpose</span>
175-
<p>These cookies are used to collect information about how visitors use our site, which we use to help improve it. The cookies collect information in an anonymous form, including the number of visitors to the site, where visitors have come to the site from and the pages they visited. These cookies may also be identified as originating from england.nhs.uk<p>These include cookies with names starting "_ga"<p><a href=http://www.google.com/intl/en-GB/policies/technologies/cookies/ >More information about Google cookies</a>.</td>
176+
<div><p>These cookies are used to collect information about how visitors use our site, which we use to help improve it. The cookies collect information in an anonymous form, including the number of visitors to the site, where visitors have come to the site from and the pages they visited. These cookies may also be identified as originating from england.nhs.uk<p>These include cookies with names starting "_ga"<p><a href=http://www.google.com/intl/en-GB/policies/technologies/cookies/ >More information about Google cookies</a>.</div></td>
176177
<td class="nhsuk-table__cell" data-label="Expiry" role="cell"><span class="nhsuk-table-responsive__heading">Expiry</span>13 months</td>
177178
</tr>
178179
<tr class="nhsuk-table__row" role="row">
@@ -184,7 +185,7 @@ Hotjar cookies</td>
184185
<a href=http://www.dls.nhs.uk/ data-cke-saved-href=http://www.dls.nhs.uk/ title=http://www.dls.nhs.uk>www.dls.nhs.uk</a></td>
185186
<td class="nhsuk-table__cell" data-label="Purpose" role="cell">
186187
<span class="nhsuk-table-responsive__heading">Purpose</span>
187-
<p>Hotjar Tracking Code cookies are set on a visitor''s browser when they visit a website that loads the Hotjar Tracking Code. These cookies allow the Hotjar Tracking Code to function correctly. Apart from cookies, the Hotjar Tracking Code uses local and session storage as well.<p>These include cookies with names starting "_hj".<p><a href=https://help.hotjar.com/hc/en-us/articles/6952777582999-Cookies-Set-by-the-Hotjar-Tracking-Code>More information about Hotjar cookies</a>.</td>
188+
<div><p>Hotjar Tracking Code cookies are set on a visitor's browser when they visit a website that loads the Hotjar Tracking Code. These cookies allow the Hotjar Tracking Code to function correctly. Apart from cookies, the Hotjar Tracking Code uses local and session storage as well.<p>These include cookies with names starting "_hj".<p><a href=https://help.hotjar.com/hc/en-us/articles/6952777582999-Cookies-Set-by-the-Hotjar-Tracking-Code>More information about Hotjar cookies</a>.</div></td>
188189
<td class="nhsuk-table__cell" data-label="Expiry" role="cell">
189190
<span class="nhsuk-table-responsive__heading">Expiry</span>1 year</td>
190191
</tr>

DigitalLearningSolutions.Web/Views/CookieConsent/CookiePolicy.cshtml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
word-break: break-word;
1111
}
1212
13+
.nhsuk-table-responsive .nhsuk-table__body .nhsuk-table-responsive__heading {
14+
min-width: 90px
15+
}
1316
.nhsuk-table-responsive .nhsuk-table__body .nhsuk-table__row td {
14-
display: block;
17+
justify-content: flex-start;
18+
text-align: left;
1519
}
1620
}
1721
</style>

0 commit comments

Comments
 (0)