mirror of https://gitlab.com/bashrc2/epicyon
Show availability on person options screen
parent
2287267b6b
commit
064da39cb0
1
tests.py
1
tests.py
|
|
@ -6202,7 +6202,6 @@ def _test_functions():
|
|||
'run_posts_watchdog',
|
||||
'run_shares_expire_watchdog',
|
||||
'get_this_weeks_events',
|
||||
'get_availability',
|
||||
'_test_threads_function',
|
||||
'create_server_group',
|
||||
'create_server_alice',
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "عرض الخريطة",
|
||||
"Organisation": "منظمة",
|
||||
"Group": "مجموعة",
|
||||
"minutes": "دقائق"
|
||||
"minutes": "دقائق",
|
||||
"Availability": "التوافر"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "মানচিত্র দেখান",
|
||||
"Organisation": "সংগঠন",
|
||||
"Group": "গ্রুপ",
|
||||
"minutes": "মিনিট"
|
||||
"minutes": "মিনিট",
|
||||
"Availability": "প্রাপ্যতা"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Mostra el mapa",
|
||||
"Organisation": "Organització",
|
||||
"Group": "Grup",
|
||||
"minutes": "minuts"
|
||||
"minutes": "minuts",
|
||||
"Availability": "Disponibilitat"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Dangos Map",
|
||||
"Organisation": "Sefydliad",
|
||||
"Group": "Grŵp",
|
||||
"minutes": "munudau"
|
||||
"minutes": "munudau",
|
||||
"Availability": "Argaeledd"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Karte anzeigen",
|
||||
"Organisation": "Organisation",
|
||||
"Group": "Gruppe",
|
||||
"minutes": "minuten"
|
||||
"minutes": "minuten",
|
||||
"Availability": "Verfügbarkeit"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Εμφάνιση Χάρτη",
|
||||
"Organisation": "Οργάνωση",
|
||||
"Group": "Ομάδα",
|
||||
"minutes": "πρακτικά"
|
||||
"minutes": "πρακτικά",
|
||||
"Availability": "Διαθεσιμότητα"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Show Map",
|
||||
"Organisation": "Organisation",
|
||||
"Group": "Group",
|
||||
"minutes": "minutes"
|
||||
"minutes": "minutes",
|
||||
"Availability": "Availability"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Mostrar mapa",
|
||||
"Organisation": "Organización",
|
||||
"Group": "Grupo",
|
||||
"minutes": "minutos"
|
||||
"minutes": "minutos",
|
||||
"Availability": "Disponibilidad"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "نمایش نقشه",
|
||||
"Organisation": "سازمان",
|
||||
"Group": "گروه",
|
||||
"minutes": "دقیقه"
|
||||
"minutes": "دقیقه",
|
||||
"Availability": "در دسترس بودن"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Näytä kartta",
|
||||
"Organisation": "Organisaatio",
|
||||
"Group": "Ryhmä",
|
||||
"minutes": "minuuttia"
|
||||
"minutes": "minuuttia",
|
||||
"Availability": "Saatavuus"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Afficher la carte",
|
||||
"Organisation": "Organisation",
|
||||
"Group": "Groupe",
|
||||
"minutes": "minutes"
|
||||
"minutes": "minutes",
|
||||
"Availability": "Disponibilité"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Taispeáin Léarscáil",
|
||||
"Organisation": "Eagraíocht",
|
||||
"Group": "Grúpa",
|
||||
"minutes": "nóiméad"
|
||||
"minutes": "nóiméad",
|
||||
"Availability": "Infhaighteacht"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "הצג מפה",
|
||||
"Organisation": "אִרגוּן",
|
||||
"Group": "קְבוּצָה",
|
||||
"minutes": "פּרוֹטוֹקוֹל"
|
||||
"minutes": "פּרוֹטוֹקוֹל",
|
||||
"Availability": "זְמִינוּת"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "नक्शा दिखाएं",
|
||||
"Organisation": "संगठन",
|
||||
"Group": "समूह",
|
||||
"minutes": "मिनट"
|
||||
"minutes": "मिनट",
|
||||
"Availability": "उपलब्धता"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Mostra mappa",
|
||||
"Organisation": "Organizzazione",
|
||||
"Group": "Gruppo",
|
||||
"minutes": "minuti"
|
||||
"minutes": "minuti",
|
||||
"Availability": "Disponibilità"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "地図を表示",
|
||||
"Organisation": "組織",
|
||||
"Group": "グループ",
|
||||
"minutes": "分"
|
||||
"minutes": "分",
|
||||
"Availability": "可用性"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "지도 표시",
|
||||
"Organisation": "조직",
|
||||
"Group": "그룹",
|
||||
"minutes": "분"
|
||||
"minutes": "분",
|
||||
"Availability": "유효성"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Nexşeya Nîşan Bide",
|
||||
"Organisation": "Sazûman",
|
||||
"Group": "Kom",
|
||||
"minutes": "deqîqe"
|
||||
"minutes": "deqîqe",
|
||||
"Availability": "Berdestbûnî"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Kaart weergeven",
|
||||
"Organisation": "Organisatie",
|
||||
"Group": "Groep",
|
||||
"minutes": "notulen"
|
||||
"minutes": "notulen",
|
||||
"Availability": "Beschikbaarheid"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -764,5 +764,6 @@
|
|||
"Show Map": "Show Map",
|
||||
"Organisation": "Organisation",
|
||||
"Group": "Group",
|
||||
"minutes": "minutes"
|
||||
"minutes": "minutes",
|
||||
"Availability": "Availability"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Pokaż mapę",
|
||||
"Organisation": "Organizacja",
|
||||
"Group": "Grupa",
|
||||
"minutes": "protokół"
|
||||
"minutes": "protokół",
|
||||
"Availability": "Dostępność"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Mostrar mapa",
|
||||
"Organisation": "Organização",
|
||||
"Group": "Grupo",
|
||||
"minutes": "minutos"
|
||||
"minutes": "minutos",
|
||||
"Availability": "Disponibilidade"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Показать карту",
|
||||
"Organisation": "Организация",
|
||||
"Group": "Группа",
|
||||
"minutes": "минут"
|
||||
"minutes": "минут",
|
||||
"Availability": "Доступность"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Onyesha Ramani",
|
||||
"Organisation": "Shirika",
|
||||
"Group": "Kundi",
|
||||
"minutes": "dakika"
|
||||
"minutes": "dakika",
|
||||
"Availability": "Upatikanaji"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Haritayı Göster",
|
||||
"Organisation": "Organizasyon",
|
||||
"Group": "Grup",
|
||||
"minutes": "dakika"
|
||||
"minutes": "dakika",
|
||||
"Availability": "Müsaitlik"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "Показати карту",
|
||||
"Organisation": "Організація",
|
||||
"Group": "Група",
|
||||
"minutes": "хвилин"
|
||||
"minutes": "хвилин",
|
||||
"Availability": "Наявність"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "ווייַזן מאַפּע",
|
||||
"Organisation": "אָרגאַניזאַציע",
|
||||
"Group": "גרופּע",
|
||||
"minutes": "מינוטן"
|
||||
"minutes": "מינוטן",
|
||||
"Availability": "פאַראַנען"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -768,5 +768,6 @@
|
|||
"Show Map": "显示地图",
|
||||
"Organisation": "组织",
|
||||
"Group": "团体",
|
||||
"minutes": "分钟"
|
||||
"minutes": "分钟",
|
||||
"Availability": "可用性"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ from webapp_utils import html_hide_from_screen_reader
|
|||
from webapp_utils import minimizing_attached_images
|
||||
from blocking import allowed_announce
|
||||
from filters import is_filtered
|
||||
from availability import get_availability
|
||||
|
||||
|
||||
def _minimize_attached_images(base_dir: str, nickname: str, domain: str,
|
||||
|
|
@ -329,6 +330,12 @@ def html_person_options(default_timeline: str,
|
|||
' <p class="optionsText">' + translate['Options for'] + \
|
||||
' @' + handle_shown + mitm_str + '</p>\n'
|
||||
|
||||
available = get_availability(base_dir, nickname, domain, options_actor)
|
||||
if available:
|
||||
options_str += \
|
||||
' <p class="optionsText">' + translate['Availability'] + \
|
||||
': ' + remove_html(available).title() + '</p>\n'
|
||||
|
||||
# is sending posts to this account blocked?
|
||||
if sending_is_blocked2(base_dir, nickname, domain,
|
||||
options_domain, options_actor):
|
||||
|
|
|
|||
Loading…
Reference in New Issue