Skip to content

Commit

Permalink
MAS-129 Add 'send me everything' option to daily email
Browse files Browse the repository at this point in the history
  • Loading branch information
d-lan1 committed Jan 16, 2020
1 parent 130f2b7 commit 3261e88
Showing 1 changed file with 72 additions and 24 deletions.
96 changes: 72 additions & 24 deletions lambda/MAS/Views/DailyEmail.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{
var evidenceType = group.Key;

@:*| INTERESTED:Daily specialities of interest:specialitiesAsString | *
@:*|INTERESTED:Daily specialities of interest:specialitiesAsString|*
<table class="spacer-heading">
<tbody>
<tr>
Expand All @@ -54,7 +54,7 @@

@foreach (var item in group)
{
@:*| INTERESTED:Daily specialities of interest:specialitiesAsString | *
@:*|INTERESTED:Daily specialities of interest:specialitiesAsString|*
<table class="row article-border">
<tbody>
<tr>
Expand Down Expand Up @@ -82,29 +82,77 @@
</tr>
</tbody>
</table>
@:*| END:INTERESTED | *
@:*|END:INTERESTED|*
}
@:*| END:INTERESTED | *
@:*|END:INTERESTED|*
}

<table class="row article-border article-mec">
<tbody>
<tr>
<th class="small-12 large-12 columns first last">
<table>
<tbody>
<tr>
<th>
<p>
All articles from Medicines awareness services: Daily edition
</p>
</th>
<th class="expander"></th>
</tr>
</tbody>
</table>
</th>
</tr>
</tbody>
</table>
*|INTERESTED:Send me everything from the Medicines Awareness Daily service:Send me everything|*
<table class="row article-border article-mec">
<tbody>
<tr>
<th class="small-12 large-12 columns first last">
<table>
<tbody>
<tr>
<th>
<p>
All articles from Medicines awareness services: Daily edition
</p>
</th>
<th class="expander"></th>
</tr>
</tbody>
</table>
</th>
</tr>
</tbody>
</table>

@foreach (var group in groupedItems)
{
var evidenceType = group.Key;

<table class="spacer-heading">
<tbody>
<tr>
<td height="16px" style="font-size:16px;line-height:16px;">
<h3 class="article-heading">evidenceType</h3>
</td>
</tr>
</tbody>
</table>

@foreach (var item in group)
{
<table class="row article-border">
<tbody>
<tr>
<th class="small-12 large-12 columns first last">
<table>
<tbody>
<tr>
<th>
<h4 class="h4 article-title"><a class="article-link" href="#">@item.Title</a></h4>
<p class="article-description">@item.ShortSummary</p>
<p class="article-description"><a class="article-link-subtle standard-link" href="https://www.medicinesresources.nhs.uk/@item.Slug">Read SPS commentary</a></p>
<p class="article-tags">
<span class="source-tag">@item.Source.Title</span>
@foreach (var spec in item.Specialities)
{
<span class="specialism-tag">@spec.Title</span>
}
</p>
</th>
<th class="expander"></th>
</tr>
</tbody>
</table>
</th>
</tr>
</tbody>
</table>
}
}
*|END:INTERESTED|*

2 comments on commit 3261e88

@NICE-TeamCity
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MAS / MAS Build 1.1.0.572 outcome was FAILURE
Summary: Artifacts size 179.9 KB is 95% different from 3.6 MB in build #1.1.0.557-r893BC73; exit code 1 (Step: Set build number (Command Line)) (new) Build time: 00:00:13

@NICE-TeamCity
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MAS / MAS Build 1.1.0.573-MAS-129_121__112_Dai outcome was FAILURE
Summary: Tests passed: 5; artifacts size 179.9 KB is 95% different from 3.6 MB in build #1.1.0.557-r893BC73; exit code 1 (Step: CMS - Build NuGet package (NuGet Pack)) (new) Build time: 00:00:43

Please sign in to comment.