mirror of
https://git.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-24 21:01:28 +00:00
Tagged timeline improvments and visible now
This commit is contained in:
parent
f729e29a8d
commit
e924503f2d
|
@ -162,10 +162,12 @@ func (s *service) TimelinePage(c *client, tType, instance, listId, maxID,
|
||||||
}
|
}
|
||||||
title = "The Whole Known Network"
|
title = "The Whole Known Network"
|
||||||
case "tag":
|
case "tag":
|
||||||
|
if len(tag) > 0 {
|
||||||
statuses, err = c.GetTimelineHashtag(c.ctx, tag, false, &pg)
|
statuses, err = c.GetTimelineHashtag(c.ctx, tag, false, &pg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
title = "Tag timeline"
|
title = "Tag timeline"
|
||||||
|
|
||||||
case "list":
|
case "list":
|
||||||
|
@ -203,6 +205,9 @@ func (s *service) TimelinePage(c *client, tType, instance, listId, maxID,
|
||||||
if len(instance) > 0 {
|
if len(instance) > 0 {
|
||||||
v.Set("instance", instance)
|
v.Set("instance", instance)
|
||||||
}
|
}
|
||||||
|
if len(tag) > 0 {
|
||||||
|
v.Set("tag", tag)
|
||||||
|
}
|
||||||
if len(listId) > 0 {
|
if len(listId) > 0 {
|
||||||
v.Set("list", listId)
|
v.Set("list", listId)
|
||||||
}
|
}
|
||||||
|
@ -215,6 +220,9 @@ func (s *service) TimelinePage(c *client, tType, instance, listId, maxID,
|
||||||
if len(instance) > 0 {
|
if len(instance) > 0 {
|
||||||
v.Set("instance", instance)
|
v.Set("instance", instance)
|
||||||
}
|
}
|
||||||
|
if len(tag) > 0 {
|
||||||
|
v.Set("tag", tag)
|
||||||
|
}
|
||||||
if len(listId) > 0 {
|
if len(listId) > 0 {
|
||||||
v.Set("list", listId)
|
v.Set("list", listId)
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
<a class="nav-link" href="/search" accesskey="6" title="Search (6)">search</a>
|
<a class="nav-link" href="/search" accesskey="6" title="Search (6)">search</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
<a class="nav-link" href="/timeline/tag">tag</a>
|
||||||
<a class="nav-link" href="/lists" accesskey="7" title="Lists (7)">lists</a>
|
<a class="nav-link" href="/lists" accesskey="7" title="Lists (7)">lists</a>
|
||||||
<a class="nav-link" href="/settings" target="_top" accesskey="8" title="Settings (8)">settings</a>
|
<a class="nav-link" href="/settings" target="_top" accesskey="8" title="Settings (8)">settings</a>
|
||||||
<form class="signout" action="/signout" method="post" target="_top">
|
<form class="signout" action="/signout" method="post" target="_top">
|
||||||
|
|
|
@ -14,6 +14,16 @@
|
||||||
<button type="submit"> Submit </button>
|
<button type="submit"> Submit </button>
|
||||||
</form>
|
</form>
|
||||||
{{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}}
|
{{range .Statuses}}
|
||||||
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
||||||
|
|
Loading…
Reference in a new issue