Use url fragment for post link on thread page
authorr <r@freesoftwareextremist.com>
Sat, 11 Jan 2020 07:19:48 +0000 (07:19 +0000)
committerr <r@freesoftwareextremist.com>
Sat, 11 Jan 2020 07:19:48 +0000 (07:19 +0000)
templates/status.tmpl

index 24c318f75e53e0d0932e29c7205d3d5115059f9c..d996eec7c6f83bcc42911f5b75c1f3fa7ba99e07 100644 (file)
                                        </a>
                                </div>
                                <div class="status-action">
-                                       <a class="status-time" href="/thread/{{.ID}}#status-{{.ID}}" {{if .ThreadInNewTab}}target="_blank"{{end}}> 
+                                       <a class="status-time" href="{{if not .ShowReplies}}/thread/{{.ID}}{{end}}#status-{{.ID}}" {{if .ThreadInNewTab}}target="_blank"{{end}}> 
                                                <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}"> {{TimeSince .CreatedAt}} </time> 
                                        </a>
                                </div>