mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-22 23:13:00 +00:00
Add refresh button on timeline page
This commit is contained in:
parent
03a1cd819a
commit
0b004efffa
@ -517,18 +517,18 @@ img.emoji {
|
|||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-title-container {
|
.page-title-container {
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-refresh {
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.notification-text {
|
.notification-text {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-refresh {
|
|
||||||
margin-right: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notification-read {
|
.notification-read {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
<td> <kbd>C</kbd> </td>
|
<td> <kbd>C</kbd> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> Refresh thread page </td>
|
<td> Refresh timeline/thread page </td>
|
||||||
<td> <kbd>T</kbd> </td>
|
<td> <kbd>T</kbd> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
{{with .Data}}
|
{{with .Data}}
|
||||||
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
||||||
<div class="notification-title-container">
|
<div class="page-title-container">
|
||||||
<span class="page-title">
|
<span class="page-title">
|
||||||
Notifications
|
Notifications
|
||||||
{{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}}
|
{{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}}
|
||||||
({{.UnreadCount }})
|
({{.UnreadCount }})
|
||||||
{{end}}
|
{{end}}
|
||||||
</span>
|
</span>
|
||||||
<a class="notification-refresh" href="/notifications" target="_self" accesskey="R" title="Refresh (R)">refresh</a>
|
<a class="page-refresh" href="/notifications" target="_self" accesskey="R" title="Refresh (R)">refresh</a>
|
||||||
{{if .ReadID}}
|
{{if .ReadID}}
|
||||||
<form class="notification-read" action="/notifications/read?max_id={{.ReadID}}" method="post" target="_self">
|
<form class="notification-read" action="/notifications/read?max_id={{.ReadID}}" method="post" target="_self">
|
||||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{{with $s := .Data}}
|
{{with $s := .Data}}
|
||||||
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
||||||
<div class="notification-title-container">
|
<div class="page-title-container">
|
||||||
<span class="page-title"> Thread </span>
|
<span class="page-title"> Thread </span>
|
||||||
<a class="notification-refresh" href="{{$.Ctx.Referrer}}" accesskey="T" title="Refresh (T)">refresh</a>
|
<a class="page-refresh" href="{{$.Ctx.Referrer}}" accesskey="T" title="Refresh (T)">refresh</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{range .Statuses}}
|
{{range .Statuses}}
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
{{with .Data}}
|
{{with .Data}}
|
||||||
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
||||||
<div class="page-title"> {{.Title}} </div>
|
<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"}}
|
{{if eq .Type "remote"}}
|
||||||
<form class="search-form" action="/timeline/remote" method="GET">
|
<form class="search-form" action="/timeline/remote" method="GET">
|
||||||
|
Loading…
Reference in New Issue
Block a user