Skip to content

Commit 8d08cbb

Browse files
committed
Improve formatting
The formatting in this file was wrong, likely because automatic formatters don't cope well with Outlook conditional comments. We don't currently enforce any automatic formatting on .html.erb files, but individual devs may have formatters enabled in their IDEs. In this case I believe the formatting issue was caused by my local `html-beautifier`. This commit makes some manual formatting to make it easier to understand the structure of this layout.
1 parent f80a5c8 commit 8d08cbb

File tree

1 file changed

+86
-86
lines changed

1 file changed

+86
-86
lines changed

app/views/layouts/mailer.html.erb

Lines changed: 86 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -64,71 +64,71 @@
6464
</td>
6565
<td style="font-size: 28px; line-height: 1.315789474; padding-left: 8px; padding-bottom: 8px">
6666
<span style="
67-
font-family: Helvetica, Arial, sans-serif;
68-
font-weight: 700;
69-
color: #ffffff;
70-
text-decoration: none;
71-
vertical-align:middle;
72-
display: inline-block"
73-
>GOV<span style="
74-
color: #00ffe0;
75-
font-family: Georgia, Times New Roman, sans-serif;
76-
font-size: 32px;
77-
mso-text-raise:7px">.</span>UK</span>
67+
font-family: Helvetica, Arial, sans-serif;
68+
font-weight: 700;
69+
color: #ffffff;
70+
text-decoration: none;
71+
vertical-align:middle;
72+
display: inline-block"
73+
>GOV<span style="
74+
color: #00ffe0;
75+
font-family: Georgia, Times New Roman, sans-serif;
76+
font-size: 32px;
77+
mso-text-raise:7px">.</span>UK</span>
7878
</td>
7979
</tr>
8080
</table>
8181
</a>
8282
</td>
8383
<![endif]-->
8484
<!--[if !mso]><!-->
85-
<td width="70" valign="bottom">
86-
<a href="https://www.gov.uk" title="Go to the GOV.UK homepage" style="text-decoration: none;color: #fff">
87-
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;">
88-
<tr>
89-
<td style="font-size: 28px; line-height: 2; padding-left: 10px" valign="bottom" height="60" class="logo__crown">
90-
<img
91-
src="https://static.notifications.service.gov.uk/images/govuk-logotype-tudor-crown.png"
92-
alt=""
93-
height="32"
94-
border="0"
95-
style="Margin-top: 2px; max-height: 32px"
96-
aria-hidden="true"
97-
>
98-
</td>
99-
<td style="font-size: 28px; line-height: 2.1428571429; padding-left: 8px;" valign="bottom" height="60" class="logo__text">
100-
<span aria-label="GOV.UK" style="
101-
font-family: Helvetica, Arial, 'Noto Sans', sans-serif;
102-
font-weight: 700;
103-
text-decoration: none;
104-
vertical-align:middle;
105-
display: inline-block;
106-
">GOV<span style="
107-
font-family: Georgia, Times New Roman, Times, sans-serif;
108-
color: #00ffe0;
109-
display: inline-block;
110-
text-indent: 0.04em;
111-
font-size: 32px;
112-
line-height: 1.35;
113-
vertical-align: top;
114-
margin-right: 0.05em;" class="logo__dot">.</span>UK</span>
115-
</td>
116-
</tr>
117-
</table>
118-
</a>
119-
</td>
120-
<!--<![endif]-->
121-
</tr>
122-
</table>
123-
<!--[if (gte mso 9)|(IE)]>
124-
</td>
85+
<td width="70" valign="bottom">
86+
<a href="https://www.gov.uk" title="Go to the GOV.UK homepage" style="text-decoration: none;color: #fff">
87+
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;">
88+
<tr>
89+
<td style="font-size: 28px; line-height: 2; padding-left: 10px" valign="bottom" height="60" class="logo__crown">
90+
<img
91+
src="https://static.notifications.service.gov.uk/images/govuk-logotype-tudor-crown.png"
92+
alt=""
93+
height="32"
94+
border="0"
95+
style="Margin-top: 2px; max-height: 32px"
96+
aria-hidden="true"
97+
>
98+
</td>
99+
<td style="font-size: 28px; line-height: 2.1428571429; padding-left: 8px;" valign="bottom" height="60" class="logo__text">
100+
<span aria-label="GOV.UK" style="
101+
font-family: Helvetica, Arial, 'Noto Sans', sans-serif;
102+
font-weight: 700;
103+
text-decoration: none;
104+
vertical-align:middle;
105+
display: inline-block;
106+
">GOV<span style="
107+
font-family: Georgia, Times New Roman, Times, sans-serif;
108+
color: #00ffe0;
109+
display: inline-block;
110+
text-indent: 0.04em;
111+
font-size: 32px;
112+
line-height: 1.35;
113+
vertical-align: top;
114+
margin-right: 0.05em;" class="logo__dot">.</span>UK</span>
115+
</td>
116+
</tr>
117+
</table>
118+
</a>
119+
</td>
120+
<!--<![endif]-->
125121
</tr>
126122
</table>
123+
<!--[if (gte mso 9)|(IE)]>
124+
</td>
125+
</tr>
126+
</table>
127127
<![endif]-->
128-
</td>
129-
</tr>
130-
</table>
131-
<table
128+
</td>
129+
</tr>
130+
</table>
131+
<table
132132
role="presentation"
133133
class="content"
134134
align="center"
@@ -138,34 +138,34 @@
138138
style="border-collapse: collapse;max-width: 580px; width: 100% !important;"
139139
width="100%"
140140
>
141-
<tr>
142-
<td height="30"><br>
143-
</td>
144-
</tr>
145-
<tr>
146-
<td width="10" valign="middle"><br>
147-
</td>
148-
<td style="font-family: Helvetica, Arial, sans-serif; font-size: 19px; line-height: 1.315789474; max-width: 560px;">
149-
<!--[if (gte mso 9)|(IE)]>
150-
<table role="presentation" width="560" align="center" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;width: 560px;">
151-
<tr>
152-
<td style="font-family: Helvetica, Arial, sans-serif; font-size: 19px; line-height: 1.315789474;">
153-
<![endif]-->
154-
<%= yield %>
155-
<!--[if (gte mso 9)|(IE)]>
156-
</td>
157-
</tr>
158-
</table>
159-
<![endif]-->
160-
</td>
161-
<td width="10" valign="middle"><br>
162-
</td>
163-
</tr>
164-
<tr>
165-
<td height="30"><br>
166-
</td>
167-
</tr>
168-
</table>
169-
</body>
170-
</html>
171-
<!-- END app/views/layouts/mailer.html.erb -->
141+
<tr>
142+
<td height="30"><br>
143+
</td>
144+
</tr>
145+
<tr>
146+
<td width="10" valign="middle"><br>
147+
</td>
148+
<td style="font-family: Helvetica, Arial, sans-serif; font-size: 19px; line-height: 1.315789474; max-width: 560px;">
149+
<!--[if (gte mso 9)|(IE)]>
150+
<table role="presentation" width="560" align="center" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;width: 560px;">
151+
<tr>
152+
<td style="font-family: Helvetica, Arial, sans-serif; font-size: 19px; line-height: 1.315789474;">
153+
<![endif]-->
154+
<%= yield %>
155+
<!--[if (gte mso 9)|(IE)]>
156+
</td>
157+
</tr>
158+
</table>
159+
<![endif]-->
160+
</td>
161+
<td width="10" valign="middle"><br>
162+
</td>
163+
</tr>
164+
<tr>
165+
<td height="30"><br>
166+
</td>
167+
</tr>
168+
</table>
169+
</body>
170+
</html>
171+
<!-- END app/views/layouts/mailer.html.erb -->

0 commit comments

Comments
 (0)