bloat/templates/timeline.tmpl

64 lines
2.0 KiB
Cheetah
Raw Permalink Normal View History

2020-01-14 16:57:16 +00:00
{{with .Data}}
2020-02-18 22:15:37 +00:00
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
2022-01-27 11:50:54 +00: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 18:08:26 +00:00
2021-01-23 08:44:05 +00: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 18:39:00 +00:00
{{if eq .Instance ""}}
2023-11-12 23:54:19 +00:00
<a href="/timeline/tremote"> True remote timeline viewer </a>
2023-11-11 18:39:00 +00:00
{{else}}
{{end}}
2021-01-23 08:44:05 +00:00
{{end}}
2023-11-12 23:54:19 +00: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>
2023-11-13 08:04:16 +00:00
<option value="friendica"{{if eq .InstanceType "friendica"}}selected{{end}}>Friendica</option>
2023-11-12 23:54:19 +00:00
</select>
</span>
<button type="submit"> Submit </button>
</form>
2023-11-13 09:49:47 +00:00
{{if eq .Instance ""}}
<span>Possible params:<br>withFiles - show posts only with media<br>remote - try fetch their global timeline<br>You can combine params: withFile:remote:some_other_param</span>
{{end}}
2023-11-12 23:54:19 +00:00
{{end}}
{{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 08:44:05 +00:00
2019-12-13 18:08:26 +00:00
{{range .Statuses}}
2020-01-14 16:57:16 +00:00
{{template "status.tmpl" (WithContext . $.Ctx)}}
2019-12-13 18:08:26 +00:00
{{end}}
2019-12-15 06:55:13 +00:00
<div class="pagination">
2020-01-28 17:51:00 +00:00
{{if .PrevLink}}
2020-09-22 16:22:58 +00:00
<a href="{{.PrevLink}}">[prev]</a>
2019-12-15 06:55:13 +00:00
{{end}}
2020-01-28 17:51:00 +00:00
{{if .NextLink}}
2020-09-22 16:22:58 +00:00
<a href="{{.NextLink}}">[next]</a>
2019-12-15 06:55:13 +00:00
{{end}}
</div>
2020-01-14 16:57:16 +00:00
2019-12-13 18:08:26 +00:00
{{template "footer.tmpl"}}
2020-01-14 16:57:16 +00:00
{{end}}