mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-01 02:49:28 +00:00
64 lines
2 KiB
Cheetah
64 lines
2 KiB
Cheetah
{{with .Data}}
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
|
<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>
|
|
|
|
{{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>
|
|
{{if eq .Instance ""}}
|
|
<a href="/timeline/tremote"> True remote timeline viewer </a>
|
|
{{else}}
|
|
{{end}}
|
|
{{end}}
|
|
{{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>
|
|
<option value="friendica"{{if eq .InstanceType "friendica"}}selected{{end}}>Friendica</option>
|
|
</select>
|
|
</span>
|
|
<button type="submit"> Submit </button>
|
|
</form>
|
|
{{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}}
|
|
{{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}}
|
|
|
|
|
|
{{range .Statuses}}
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
|
{{end}}
|
|
|
|
<div class="pagination">
|
|
{{if .PrevLink}}
|
|
<a href="{{.PrevLink}}">[prev]</a>
|
|
{{end}}
|
|
{{if .NextLink}}
|
|
<a href="{{.NextLink}}">[next]</a>
|
|
{{end}}
|
|
</div>
|
|
|
|
{{template "footer.tmpl"}}
|
|
{{end}}
|