Skip to content

Commit

Permalink
Merge pull request #160 from tstromberg/warning-header
Browse files Browse the repository at this point in the history
warning message: Fix mismatched quote
  • Loading branch information
tstromberg authored Jun 19, 2020
2 parents 62dce02 + 96c8f70 commit 3ffac2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/site/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (h *Handlers) collectionPage(ctx context.Context, id string, refresh bool)
warning := ""

if time.Since(result.LatestInput) > h.warnAge {
warning = fmt.Sprintf(`Service started %s ago, and is still downloading data. Data may be up to %s old and incomplete. Use <a href='https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache">Shift-Reload</a> to force a data refresh.`, humanDuration(time.Since(h.startTime)), humanDuration(time.Since(result.LatestInput)))
warning = fmt.Sprintf(`Service restarted %s ago, and is still downloading data. Data may be up to %s old and incomplete. You may use <a href="https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache">Shift-Reload</a> to force a data refresh at any time.`, humanDuration(time.Since(h.startTime)), humanDuration(time.Since(result.LatestInput)))
}

total := 0
Expand Down

0 comments on commit 3ffac2f

Please sign in to comment.