Refresh button instead of meta refresh

This should be better for mobile
master
Bob Mottram 2019-09-05 09:47:36 +01:00
parent f27ad3db04
commit e544b128f0
2 changed files with 3 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -1756,9 +1756,9 @@ def htmlTimeline(pageNumber: int,itemsPerPage: int,session,baseDir: str, \
moderationButtonStr='<a href="'+actor+'/moderation"><button class="'+moderationButton+'"><span>Mod </span></button></a>'
tlStr=htmlHeader(profileStyle)
if (boxName=='inbox' or boxName=='dm') and pageNumber==1:
#if (boxName=='inbox' or boxName=='dm') and pageNumber==1:
# refresh if on the first page of the inbox and dm timeline
tlStr=htmlHeader(profileStyle,240)
#tlStr=htmlHeader(profileStyle,240)
if boxName!='dm':
if not manuallyApproveFollowers:
@ -1779,6 +1779,7 @@ def htmlTimeline(pageNumber: int,itemsPerPage: int,session,baseDir: str, \
' <a href="'+actor+'/outbox"><button class="'+sentButton+'"><span>Outbox</span></button></a>'+ \
moderationButtonStr+newPostButtonStr+ \
' <a href="'+actor+'/search"><img src="/icons/search.png" title="Search and follow" alt="Search and follow" class="right"/></a>'+ \
' <a href="'+actor+'/inbox"><img src="/icons/refresh.png" title="Refresh" alt="Refresh" class="right"/></a>'+ \
followApprovals+ \
'</div>'