Simplify date formats
This commit is contained in:
parent
4fee11b591
commit
63895bed2d
|
@ -42,7 +42,7 @@
|
||||||
{{if .Available}}
|
{{if .Available}}
|
||||||
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Available!</li>
|
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Available!</li>
|
||||||
{{else}}
|
{{else}}
|
||||||
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</li>
|
<li><a href="#{{.DomainName}}">{{.DomainName}}</a> – Registered since {{(parseTime .DomainInfo.CreatedDate).Format "Jan 2, 2006" }}</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -52,12 +52,12 @@
|
||||||
<h3 id="{{.DomainName}}">{{.DomainName}}</h3>
|
<h3 id="{{.DomainName}}">{{.DomainName}}</h3>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Fetched</dt>
|
<dt>Fetched</dt>
|
||||||
<dd>{{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}</dd>
|
<dd>{{.FetchTime.Format "Jan 2, 2006 15:04:05 -0700" }}</dd>
|
||||||
{{if not .Available}}
|
{{if not .Available}}
|
||||||
<dt>Owner</dt>
|
<dt>Owner</dt>
|
||||||
<dd><a href="mailto:{{.Registrant.Email}}">{{.Registrant.Name}} <{{.Registrant.Email}}></a></dd>
|
<dd><a href="mailto:{{.Registrant.Email}}">{{.Registrant.Name}} <{{.Registrant.Email}}></a></dd>
|
||||||
<dt>Since</dt>
|
<dt>Since</dt>
|
||||||
<dd>{{(parseTime .DomainInfo.CreatedDate).Format "Mon Jan 2 2006" }}</dd>
|
<dd>{{(parseTime .DomainInfo.CreatedDate).Format "Jan 2, 2006" }}</dd>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{with .Title}}
|
{{with .Title}}
|
||||||
<dt>Title</dt>
|
<dt>Title</dt>
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
</dl>
|
</dl>
|
||||||
{{if .ScreenshotURL}}
|
{{if .ScreenshotURL}}
|
||||||
<a href="http://{{.DomainName}}">
|
<a href="http://{{.DomainName}}">
|
||||||
<img src="{{.ScreenshotURL}}" alt="screenshot of {{.DomainName}} as of {{.FetchTime.Format "Mon Jan 2 15:04:05 -0700 MST 2006" }}">
|
<img src="{{.ScreenshotURL}}" alt="screenshot of {{.DomainName}} as of {{.FetchTime.Format "Jan 2, 2006 15:04:05 -0700" }}">
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue