2020-01-14 18:57:16 +02:00
|
|
|
{{with .Data}}
|
2020-02-19 00:15:37 +02:00
|
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
2022-01-27 13:50:54 +02:00
|
|
|
<div class="page-title-container">
|
|
|
|
<span class="page-title"> {{.Title}} </span>
|
|
|
|
<a class="page-refresh" href="{{$.Ctx.Referrer}}" accesskey="T" title="Refresh (T)">refresh</a>
|
|
|
|
</div>
|
2019-12-13 20:08:26 +02:00
|
|
|
|
2021-01-23 10:44:05 +02:00
|
|
|
{{if eq .Type "remote"}}
|
|
|
|
<form class="search-form" action="/timeline/remote" method="GET">
|
|
|
|
<span class="post-form-field">
|
|
|
|
<label for="instance"> Instance </label>
|
|
|
|
<input id="instance" name="instance" value="{{.Instance}}">
|
|
|
|
</span>
|
|
|
|
<button type="submit"> Submit </button>
|
|
|
|
</form>
|
2023-11-11 20:39:00 +02:00
|
|
|
{{if eq .Instance ""}}
|
2023-11-13 01:54:19 +02:00
|
|
|
<a href="/timeline/tremote"> True remote timeline viewer </a>
|
2023-11-11 20:39:00 +02:00
|
|
|
{{else}}
|
|
|
|
{{end}}
|
2021-01-23 10:44:05 +02:00
|
|
|
{{end}}
|
2023-11-13 01:54:19 +02:00
|
|
|
{{if eq .Type "tremote"}}
|
|
|
|
<form class="search-form" action="/timeline/tremote" method="GET">
|
|
|
|
<span class="post-form-field">
|
|
|
|
<label for="instance"> Instance </label>
|
|
|
|
<input id="instance" name="instance" value="{{.Instance}}" placeholder="example.com:optional_param">
|
|
|
|
<select id="instance_type" name="instance_type" title="Select instance type">
|
|
|
|
<option value="mastodon-compatible" default>Mastodon compatible</option>
|
|
|
|
<option value="misskey"{{if eq .InstanceType "misskey"}}selected{{end}}>Misskey</option>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
<button type="submit"> Submit </button>
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2022-12-14 01:56:26 +02:00
|
|
|
{{if eq .Type "tag"}}
|
|
|
|
<form class="search-form" action="/timeline/tag" method="GET">
|
|
|
|
<span class="post-form-field">
|
|
|
|
<label for="tag"> Tag </label>
|
|
|
|
<input id="tag" name="tag" value="">
|
|
|
|
</span>
|
|
|
|
<button type="submit"> Submit </button>
|
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
|
2021-01-23 10:44:05 +02:00
|
|
|
|
2019-12-13 20:08:26 +02:00
|
|
|
{{range .Statuses}}
|
2020-01-14 18:57:16 +02:00
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
2019-12-13 20:08:26 +02:00
|
|
|
{{end}}
|
|
|
|
|
2019-12-15 08:55:13 +02:00
|
|
|
<div class="pagination">
|
2020-01-28 19:51:00 +02:00
|
|
|
{{if .PrevLink}}
|
2020-09-22 19:22:58 +03:00
|
|
|
<a href="{{.PrevLink}}">[prev]</a>
|
2019-12-15 08:55:13 +02:00
|
|
|
{{end}}
|
2020-01-28 19:51:00 +02:00
|
|
|
{{if .NextLink}}
|
2020-09-22 19:22:58 +03:00
|
|
|
<a href="{{.NextLink}}">[next]</a>
|
2019-12-15 08:55:13 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2020-01-14 18:57:16 +02:00
|
|
|
|
2019-12-13 20:08:26 +02:00
|
|
|
{{template "footer.tmpl"}}
|
2020-01-14 18:57:16 +02:00
|
|
|
{{end}}
|