mirror of https://gitlab.com/bashrc2/epicyon
Highlighting icons on calendar screen
parent
050c03634a
commit
6680d8bc30
|
@ -17081,7 +17081,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.domain_full,
|
self.server.domain_full,
|
||||||
self.server.text_mode_banner,
|
self.server.text_mode_banner,
|
||||||
access_keys,
|
access_keys,
|
||||||
False, self.server.system_language)
|
False, self.server.system_language,
|
||||||
|
self.server.default_timeline)
|
||||||
if msg:
|
if msg:
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
msglen = len(msg)
|
msglen = len(msg)
|
||||||
|
@ -17123,7 +17124,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.text_mode_banner,
|
self.server.text_mode_banner,
|
||||||
access_keys,
|
access_keys,
|
||||||
True,
|
True,
|
||||||
self.server.system_language)
|
self.server.system_language,
|
||||||
|
self.server.default_timeline)
|
||||||
if msg:
|
if msg:
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
msglen = len(msg)
|
msglen = len(msg)
|
||||||
|
|
|
@ -66,6 +66,14 @@ main {
|
||||||
flex-basis: 980px;
|
flex-basis: 980px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imageAnchor {
|
||||||
|
font-family: var(--calendar-header-font);
|
||||||
|
}
|
||||||
|
|
||||||
|
.imageAnchor:focus img{
|
||||||
|
border: 2px solid var(--focus-color);
|
||||||
|
}
|
||||||
|
|
||||||
a:visited{
|
a:visited{
|
||||||
color: var(--day-number);
|
color: var(--day-number);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -299,7 +299,8 @@ def html_calendar(person_cache: {}, css_cache: {}, translate: {},
|
||||||
base_dir: str, path: str,
|
base_dir: str, path: str,
|
||||||
http_prefix: str, domain_full: str,
|
http_prefix: str, domain_full: str,
|
||||||
text_mode_banner: str, access_keys: {},
|
text_mode_banner: str, access_keys: {},
|
||||||
icalendar: bool, system_language: str) -> str:
|
icalendar: bool, system_language: str,
|
||||||
|
default_timeline: str) -> str:
|
||||||
"""Show the calendar for a person
|
"""Show the calendar for a person
|
||||||
"""
|
"""
|
||||||
domain = remove_domain_port(domain_full)
|
domain = remove_domain_port(domain_full)
|
||||||
|
@ -429,15 +430,18 @@ def html_calendar(person_cache: {}, css_cache: {}, translate: {},
|
||||||
calendar_str += \
|
calendar_str += \
|
||||||
' <a href="' + cal_actor + '/calendar?year=' + str(prev_year) + \
|
' <a href="' + cal_actor + '/calendar?year=' + str(prev_year) + \
|
||||||
'?month=' + str(prev_month_number) + '" ' + \
|
'?month=' + str(prev_month_number) + '" ' + \
|
||||||
'accesskey="' + access_keys['Page up'] + '" tabindex="2">'
|
'accesskey="' + access_keys['Page up'] + \
|
||||||
|
'" tabindex="2" class="imageAnchor">'
|
||||||
calendar_str += \
|
calendar_str += \
|
||||||
' <img loading="lazy" decoding="async" ' + \
|
' <img loading="lazy" decoding="async" ' + \
|
||||||
'alt="' + translate['Previous month'] + \
|
'alt="' + translate['Previous month'] + \
|
||||||
'" title="' + translate['Previous month'] + '" src="/icons' + \
|
'" title="' + translate['Previous month'] + '" src="/icons' + \
|
||||||
'/prev.png" class="buttonprev"/></a>\n'
|
'/prev.png" class="buttonprev"/></a>\n'
|
||||||
calendar_str += ' <a href="' + cal_actor + '/inbox" title="'
|
calendar_str += \
|
||||||
|
' <a href="' + cal_actor + '/' + default_timeline + '" title="'
|
||||||
calendar_str += translate['Switch to timeline view'] + '" ' + \
|
calendar_str += translate['Switch to timeline view'] + '" ' + \
|
||||||
'accesskey="' + access_keys['menuTimeline'] + '" tabindex="1">'
|
'accesskey="' + access_keys['menuTimeline'] + \
|
||||||
|
'" tabindex="1" class="imageAnchor">'
|
||||||
calendar_str += \
|
calendar_str += \
|
||||||
' <h1><time datetime="' + \
|
' <h1><time datetime="' + \
|
||||||
str(year) + '-' + str(month_number) + '">' + month_name + \
|
str(year) + '-' + str(month_number) + '">' + month_name + \
|
||||||
|
@ -445,7 +449,8 @@ def html_calendar(person_cache: {}, css_cache: {}, translate: {},
|
||||||
calendar_str += \
|
calendar_str += \
|
||||||
' <a href="' + cal_actor + '/calendar?year=' + str(next_year) + \
|
' <a href="' + cal_actor + '/calendar?year=' + str(next_year) + \
|
||||||
'?month=' + str(next_month_number) + '" ' + \
|
'?month=' + str(next_month_number) + '" ' + \
|
||||||
'accesskey="' + access_keys['Page down'] + '" tabindex="2">'
|
'accesskey="' + access_keys['Page down'] + \
|
||||||
|
'" tabindex="2" class="imageAnchor">'
|
||||||
calendar_str += \
|
calendar_str += \
|
||||||
' <img loading="lazy" decoding="async" ' + \
|
' <img loading="lazy" decoding="async" ' + \
|
||||||
'alt="' + translate['Next month'] + \
|
'alt="' + translate['Next month'] + \
|
||||||
|
|
Loading…
Reference in New Issue