Skip to content

Commit 3261e88

Browse files
author
dylan
committed
MAS-129 Add 'send me everything' option to daily email
1 parent 130f2b7 commit 3261e88

1 file changed

Lines changed: 72 additions & 24 deletions

File tree

lambda/MAS/Views/DailyEmail.cshtml

Lines changed: 72 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{
4242
var evidenceType = group.Key;
4343

44-
@:*| INTERESTED:Daily specialities of interest:specialitiesAsString | *
44+
@:*|INTERESTED:Daily specialities of interest:specialitiesAsString|*
4545
<table class="spacer-heading">
4646
<tbody>
4747
<tr>
@@ -54,7 +54,7 @@
5454

5555
@foreach (var item in group)
5656
{
57-
@:*| INTERESTED:Daily specialities of interest:specialitiesAsString | *
57+
@:*|INTERESTED:Daily specialities of interest:specialitiesAsString|*
5858
<table class="row article-border">
5959
<tbody>
6060
<tr>
@@ -82,29 +82,77 @@
8282
</tr>
8383
</tbody>
8484
</table>
85-
@:*| END:INTERESTED | *
85+
@:*|END:INTERESTED|*
8686
}
87-
@:*| END:INTERESTED | *
87+
@:*|END:INTERESTED|*
8888
}
8989

90-
<table class="row article-border article-mec">
91-
<tbody>
92-
<tr>
93-
<th class="small-12 large-12 columns first last">
94-
<table>
95-
<tbody>
96-
<tr>
97-
<th>
98-
<p>
99-
All articles from Medicines awareness services: Daily edition
100-
</p>
101-
</th>
102-
<th class="expander"></th>
103-
</tr>
104-
</tbody>
105-
</table>
106-
</th>
107-
</tr>
108-
</tbody>
109-
</table>
90+
*|INTERESTED:Send me everything from the Medicines Awareness Daily service:Send me everything|*
91+
<table class="row article-border article-mec">
92+
<tbody>
93+
<tr>
94+
<th class="small-12 large-12 columns first last">
95+
<table>
96+
<tbody>
97+
<tr>
98+
<th>
99+
<p>
100+
All articles from Medicines awareness services: Daily edition
101+
</p>
102+
</th>
103+
<th class="expander"></th>
104+
</tr>
105+
</tbody>
106+
</table>
107+
</th>
108+
</tr>
109+
</tbody>
110+
</table>
111+
112+
@foreach (var group in groupedItems)
113+
{
114+
var evidenceType = group.Key;
115+
116+
<table class="spacer-heading">
117+
<tbody>
118+
<tr>
119+
<td height="16px" style="font-size:16px;line-height:16px;">
120+
<h3 class="article-heading">evidenceType</h3>
121+
</td>
122+
</tr>
123+
</tbody>
124+
</table>
125+
126+
@foreach (var item in group)
127+
{
128+
<table class="row article-border">
129+
<tbody>
130+
<tr>
131+
<th class="small-12 large-12 columns first last">
132+
<table>
133+
<tbody>
134+
<tr>
135+
<th>
136+
<h4 class="h4 article-title"><a class="article-link" href="#">@item.Title</a></h4>
137+
<p class="article-description">@item.ShortSummary</p>
138+
<p class="article-description"><a class="article-link-subtle standard-link" href="https://www.medicinesresources.nhs.uk/@item.Slug">Read SPS commentary</a></p>
139+
<p class="article-tags">
140+
<span class="source-tag">@item.Source.Title</span>
141+
@foreach (var spec in item.Specialities)
142+
{
143+
<span class="specialism-tag">@spec.Title</span>
144+
}
145+
</p>
146+
</th>
147+
<th class="expander"></th>
148+
</tr>
149+
</tbody>
150+
</table>
151+
</th>
152+
</tr>
153+
</tbody>
154+
</table>
155+
}
156+
}
157+
*|END:INTERESTED|*
110158

0 commit comments

Comments
 (0)