Browse Source

Fix behaviour of prompt for when the Timeline is empty

remove_webp
James Mills 1 week ago
parent
commit
2894ad5938
Signed by: prologic GPG Key ID: AC4C014F1440EBD6
  1. 12
      internal/templates/_partials.html

12
internal/templates/_partials.html

@ -181,11 +181,13 @@
{{ range $idx, $twt := $.Twts }}
{{ template "twt" (dict "Authenticated" $.Authenticated "User" $.User "Profile" $.Profile "LastTwt" $.LastTwt "Twt" $twt "Ctx" $.Ctx "view" $.view) }}
{{ else }}
<p>{{tr $.Ctx "NoTwts"}}</p>
<p>
Try checking out the <a href="/discover">{{tr $.Ctx "NavDiscover"}}</a>
timeline to see what's going on on the {{ $.Ctx.InstanceName }} pod or
<a href="/follow">{{tr $.Ctx "NavFollow" }}</a> a feed</p>
{{ if eq $.view "timeline" }}
<p>{{tr $.Ctx "NoTwts"}}</p>
<p>
Try checking out the <a href="/discover">{{tr $.Ctx "NavDiscover"}}</a>
timeline to see what's happenning on the {{ $.Ctx.InstanceName }} pod or
<a href="/follow">{{tr $.Ctx "NavFollow" }}</a> a feed</p>
{{ end }}
{{ end }}
{{ template "pager" (dict "Pager" $.Pager "Ctx" $.Ctx)}}
</div>

Loading…
Cancel
Save