Skip to content

Commit

Permalink
Update wording for status report link share
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryLR committed Aug 20, 2023
1 parent dce9ef6 commit a4a21f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/app/trend-map/trend-map.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ <h3>{{panelContent.title}}</h3> <!-- County or State -->
<h6>{{panelContent.subtitle}}</h6> <!-- State or blank -->

<div *ngIf="isPanelContentValid({title: panelContent.title, subtitle: panelContent.subtitle, timeStop: currentTimeStop.num})">
<p *ngIf="weekDefinitions"><em>{{formatHopkinsDate(weekDefinitions.list[currentTimeStop.num])}}</em></p>
<!-- <p>{{panelContent.date}}20</p> -->
<p><em>{{panelContent.date}}</em></p>

<div class="panel-separator"></div>

Expand Down Expand Up @@ -166,7 +165,7 @@ <h6>{{panelContent.subtitle}}</h6> <!-- State or blank -->

<div class="form-group" style="margin-top: 24px">
<div class="panel-subtitle">Share or Bookmark</div>
<p>Direct URL to the status report for {{panelContent.title}}{{panelContent.subtitle ? ", " + panelContent.subtitle : ""}}:</p>
<p>Direct link to this status report ({{panelContent.title}}, {{panelContent.date}}):</p>
<input readonly class="form-control status-report-link-text"
value="{{ makeParamsURL({ week: currentTimeStop.num, fips: panelContent.fips, name: panelContent.title }) }}">
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/trend-map/trend-map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export class TrendMapComponent implements OnInit {
this.panelContent.deathsCumulative = this.styleNum(deathCumulative);
this.panelContent.deathsRate = this.styleNum(deathRate);
this.panelContent.deathsRateNorm = this.styleNum(deathRateNorm);
this.panelContent.date = this.weekDefinitions.lookup[`t${this.latestTimeStop.num + 1}`];
this.panelContent.date = this.formatHopkinsDate(this.weekDefinitions.list[this.currentTimeStop.num]);
if (recoveryStreak === 0 && cumulative > 0) {
this.panelContent.summary = `${this.panelContent.title} reported <strong>${this.panelContent.rate} new cases</strong> of COVID-19 over the selected week ${acceleration >= 0 || rate == 0 ? 'and' : 'but'} the number of ${rate > 0 ? '' : 'no'} new cases was <strong>${acceleration > 0 ? 'accelerating.' : acceleration == 0 ? 'steady.' : 'decelerating.'}</strong>`;
} else if (recoveryStreak > 0 && cumulative > 0) {
Expand Down

0 comments on commit a4a21f6

Please sign in to comment.