aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2022-01-27 11:50:54 +0000
committerr <r@freesoftwareextremist.com>2022-01-27 11:50:54 +0000
commit0b004efffab6775223c7921b099bd50b6e060f3b (patch)
tree5cbd14c1469179f7b2fc48677b417ec3ec7fadef
parent03a1cd819a7eb5bc0207f750aafe8b239f310af3 (diff)
downloadbloat-0b004efffab6775223c7921b099bd50b6e060f3b.tar.gz
bloat-0b004efffab6775223c7921b099bd50b6e060f3b.zip
Add refresh button on timeline page
-rw-r--r--static/style.css10
-rw-r--r--templates/about.tmpl2
-rw-r--r--templates/notification.tmpl4
-rw-r--r--templates/thread.tmpl4
-rw-r--r--templates/timeline.tmpl5
5 files changed, 14 insertions, 11 deletions
diff --git a/static/style.css b/static/style.css
index 96c842f..4e2a196 100644
--- a/static/style.css
+++ b/static/style.css
@@ -517,16 +517,16 @@ img.emoji {
margin-top: 6px;
}
-.notification-title-container {
+.page-title-container {
margin: 8px 0;
}
-.notification-text {
- vertical-align: middle;
+.page-refresh {
+ margin-right: 8px;
}
-.notification-refresh {
- margin-right: 8px;
+.notification-text {
+ vertical-align: middle;
}
.notification-read {
diff --git a/templates/about.tmpl b/templates/about.tmpl
index c0b8418..54316cf 100644
--- a/templates/about.tmpl
+++ b/templates/about.tmpl
@@ -94,7 +94,7 @@
<td> <kbd>C</kbd> </td>
</tr>
<tr>
- <td> Refresh thread page </td>
+ <td> Refresh timeline/thread page </td>
<td> <kbd>T</kbd> </td>
</tr>
</table>
diff --git a/templates/notification.tmpl b/templates/notification.tmpl
index 8ed4dd6..a7f88a7 100644
--- a/templates/notification.tmpl
+++ b/templates/notification.tmpl
@@ -1,13 +1,13 @@
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
-<div class="notification-title-container">
+<div class="page-title-container">
<span class="page-title">
Notifications
{{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}}
({{.UnreadCount }})
{{end}}
</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}}
<form class="notification-read" action="/notifications/read?max_id={{.ReadID}}" method="post" target="_self">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
diff --git a/templates/thread.tmpl b/templates/thread.tmpl
index bb9f14f..d6a1c7d 100644
--- a/templates/thread.tmpl
+++ b/templates/thread.tmpl
@@ -1,8 +1,8 @@
{{with $s := .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
-<div class="notification-title-container">
+<div class="page-title-container">
<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>
{{range .Statuses}}
diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl
index bde050a..38659dc 100644
--- a/templates/timeline.tmpl
+++ b/templates/timeline.tmpl
@@ -1,6 +1,9 @@
{{with .Data}}
{{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"}}
<form class="search-form" action="/timeline/remote" method="GET">