mirror of https://gitlab.com/bashrc2/epicyon
Show joined dates within profile screens
parent
89a15fdc73
commit
c1de82e5c9
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "أدخل الملاحظات",
|
||||
"These access keys may be used": "قد يتم استخدام مفاتيح الوصول هذه، عادة مع مفتاح ALT + SHIFT + مفتاح ALT +",
|
||||
"Show numbers of accounts within instance metadata": "إظهار عدد الحسابات داخل البيانات الوصفية للمثيلات",
|
||||
"Show version number within instance metadata": "إظهار رقم الإصدار داخل البيانات الوصفية للمثيل"
|
||||
"Show version number within instance metadata": "إظهار رقم الإصدار داخل البيانات الوصفية للمثيل",
|
||||
"Joined": "تاريخ الانضمام"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Introduïu notes",
|
||||
"These access keys may be used": "Es poden utilitzar aquestes tecles d'accés, típicament amb Alt + Maj + tecla o Alt + clau",
|
||||
"Show numbers of accounts within instance metadata": "Mostra el nombre de comptes a les metadades de la instància",
|
||||
"Show version number within instance metadata": "Mostra el número de versió a les metadades de la instància"
|
||||
"Show version number within instance metadata": "Mostra el número de versió a les metadades de la instància",
|
||||
"Joined": "Data d'unió"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Rhowch nodiadau",
|
||||
"These access keys may be used": "Gellir defnyddio'r allweddi mynediad hyn, fel arfer gyda ALT + Shift + Allwedd Allwedd neu ALT +",
|
||||
"Show numbers of accounts within instance metadata": "Dangos nifer y cyfrifon o fewn metadata",
|
||||
"Show version number within instance metadata": "Dangos rhif y fersiwn o fewn metadata"
|
||||
"Show version number within instance metadata": "Dangos rhif y fersiwn o fewn metadata",
|
||||
"Joined": "Dyddiad ymuno"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Notizen eingeben",
|
||||
"These access keys may be used": "Diese Zugriffstasten können verwendet werden, typischerweise mit ALT + SHIFT + -Taste oder ALT + -Taste",
|
||||
"Show numbers of accounts within instance metadata": "Anzahl der Konten in Instanzmetadaten anzeigen",
|
||||
"Show version number within instance metadata": "Versionsnummer in Instanzmetadaten anzeigen"
|
||||
"Show version number within instance metadata": "Versionsnummer in Instanzmetadaten anzeigen",
|
||||
"Joined": "Verbundenes Datum"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Enter notes",
|
||||
"These access keys may be used": "These access keys may be used, typically with ALT + SHIFT + key or ALT + key",
|
||||
"Show numbers of accounts within instance metadata": "Show numbers of accounts within instance metadata",
|
||||
"Show version number within instance metadata": "Show version number within instance metadata"
|
||||
"Show version number within instance metadata": "Show version number within instance metadata",
|
||||
"Joined": "Joined"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Ingresar notas",
|
||||
"These access keys may be used": "Se pueden usar estas teclas de acceso, típicamente con teclas ALT + MAYÚS + teclas o ALT +",
|
||||
"Show numbers of accounts within instance metadata": "Muestra el número de cuentas dentro de los metadatos de la instancia.",
|
||||
"Show version number within instance metadata": "Mostrar el número de versión dentro de los metadatos de la instancia"
|
||||
"Show version number within instance metadata": "Mostrar el número de versión dentro de los metadatos de la instancia",
|
||||
"Joined": "Fecha unida"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Faire entrer des notes",
|
||||
"These access keys may be used": "Ces touches d'accès peuvent être utilisées typiquement avec une touche Alt + Maj + ou Alt +",
|
||||
"Show numbers of accounts within instance metadata": "Afficher le nombre de comptes dans les métadonnées de l'instance",
|
||||
"Show version number within instance metadata": "Afficher le numéro de version dans les métadonnées de l'instance"
|
||||
"Show version number within instance metadata": "Afficher le numéro de version dans les métadonnées de l'instance",
|
||||
"Joined": "Joint"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Cuir nótaí isteach",
|
||||
"These access keys may be used": "Is féidir na heochracha rochtana seo a úsáid, de ghnáth le Alt + Shift + Eochair nó Alt + Eochair",
|
||||
"Show numbers of accounts within instance metadata": "Taispeáin líon na gcuntas laistigh de mheiteashonraí",
|
||||
"Show version number within instance metadata": "Taispeáin uimhir an leagain laistigh de mheiteashonraí"
|
||||
"Show version number within instance metadata": "Taispeáin uimhir an leagain laistigh de mheiteashonraí",
|
||||
"Joined": "Dáta comhcheangailte"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "नोट्स दर्ज करें",
|
||||
"These access keys may be used": "इन एक्सेस कुंजियों का उपयोग किया जा सकता है, आमतौर पर Alt + Shift + कुंजी या Alt + कुंजी के साथ",
|
||||
"Show numbers of accounts within instance metadata": "उदाहरण मेटाडेटा के भीतर खातों की संख्या दिखाएं",
|
||||
"Show version number within instance metadata": "उदाहरण मेटाडेटा के भीतर संस्करण संख्या दिखाएं"
|
||||
"Show version number within instance metadata": "उदाहरण मेटाडेटा के भीतर संस्करण संख्या दिखाएं",
|
||||
"Joined": "दिनांक"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Inserisci le note",
|
||||
"These access keys may be used": "Questi tasti di accesso possono essere utilizzati, in genere con tasto ALT + MAIUSC + o ALT + Key",
|
||||
"Show numbers of accounts within instance metadata": "Mostra il numero di account all'interno dei metadati dell'istanza",
|
||||
"Show version number within instance metadata": "Mostra il numero di versione nei metadati dell'istanza"
|
||||
"Show version number within instance metadata": "Mostra il numero di versione nei metadati dell'istanza",
|
||||
"Joined": "Unito"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "ノートを入力してください",
|
||||
"These access keys may be used": "これらのアクセスキーは、通常はAlt + Shift +キーまたはAlt +キーを使用して使用できます。",
|
||||
"Show numbers of accounts within instance metadata": "インスタンスメタデータ内のアカウント数を表示する",
|
||||
"Show version number within instance metadata": "インスタンスメタデータ内にバージョン番号を表示する"
|
||||
"Show version number within instance metadata": "インスタンスメタデータ内にバージョン番号を表示する",
|
||||
"Joined": "参加日"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Nîşan binivîse",
|
||||
"These access keys may be used": "Dibe ku ev keysên gihîştinê bikar bînin, bi gelemperî bi alt + shift + key an alt + key",
|
||||
"Show numbers of accounts within instance metadata": "Di nav metadata mînakê de hejmarên hesaban nîşan bidin",
|
||||
"Show version number within instance metadata": "Di nav metadata mînakê de nimreya guhertoyê nîşan bide"
|
||||
"Show version number within instance metadata": "Di nav metadata mînakê de nimreya guhertoyê nîşan bide",
|
||||
"Joined": "Beşdarbûna Dîrokê"
|
||||
}
|
||||
|
|
|
@ -435,5 +435,6 @@
|
|||
"enterNotes": "Enter notes",
|
||||
"These access keys may be used": "These access keys may be used, typically with ALT + SHIFT + key or ALT + key",
|
||||
"Show numbers of accounts within instance metadata": "Show numbers of accounts within instance metadata",
|
||||
"Show version number within instance metadata": "Show version number within instance metadata"
|
||||
"Show version number within instance metadata": "Show version number within instance metadata",
|
||||
"Joined": "Joined"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Digite notas",
|
||||
"These access keys may be used": "Essas teclas de acesso podem ser usadas, normalmente com tecla Alt + Shift + Key ou Alt +",
|
||||
"Show numbers of accounts within instance metadata": "Mostra o número de contas nos metadados da instância",
|
||||
"Show version number within instance metadata": "Mostrar o número da versão nos metadados da instância"
|
||||
"Show version number within instance metadata": "Mostrar o número da versão nos metadados da instância",
|
||||
"Joined": "Data juntada"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "Введите ноты",
|
||||
"These access keys may be used": "Эти ключевые ключи доступа могут быть использованы, обычно с ALT + Shift + Key или Alt + Key",
|
||||
"Show numbers of accounts within instance metadata": "Показать количество учетных записей в метаданных экземпляра",
|
||||
"Show version number within instance metadata": "Показать номер версии в метаданных экземпляра"
|
||||
"Show version number within instance metadata": "Показать номер версии в метаданных экземпляра",
|
||||
"Joined": "Присоединенная дата"
|
||||
}
|
||||
|
|
|
@ -439,5 +439,6 @@
|
|||
"enterNotes": "输入笔记",
|
||||
"These access keys may be used": "可以使用这些访问密钥,通常使用Alt + Shift +键或ALT +键",
|
||||
"Show numbers of accounts within instance metadata": "显示实例元数据中的帐户数",
|
||||
"Show version number within instance metadata": "在实例元数据中显示版本号"
|
||||
"Show version number within instance metadata": "在实例元数据中显示版本号",
|
||||
"Joined": "加入日期"
|
||||
}
|
||||
|
|
|
@ -246,6 +246,11 @@ def htmlProfileAfterSearch(cssCache: {},
|
|||
if profileJson.get('alsoKnownAs'):
|
||||
alsoKnownAs = profileJson['alsoKnownAs']
|
||||
|
||||
joinedDate = None
|
||||
if profileJson.get('published'):
|
||||
if 'T' in profileJson['published']:
|
||||
joinedDate = profileJson['published']
|
||||
|
||||
profileStr = \
|
||||
_getProfileHeaderAfterSearch(baseDir,
|
||||
nickname, defaultTimeline,
|
||||
|
@ -256,7 +261,8 @@ def htmlProfileAfterSearch(cssCache: {},
|
|||
profileDescriptionShort,
|
||||
avatarUrl, imageUrl,
|
||||
movedTo, profileJson['id'],
|
||||
alsoKnownAs, accessKeys)
|
||||
alsoKnownAs, accessKeys,
|
||||
joinedDate)
|
||||
|
||||
domainFull = getFullDomain(domain, port)
|
||||
|
||||
|
@ -335,7 +341,8 @@ def _getProfileHeader(baseDir: str, httpPrefix: str,
|
|||
theme: str, movedTo: str,
|
||||
alsoKnownAs: [],
|
||||
pinnedContent: str,
|
||||
accessKeys: {}) -> str:
|
||||
accessKeys: {},
|
||||
joinedDate: str) -> str:
|
||||
"""The header of the profile screen, containing background
|
||||
image and avatar
|
||||
"""
|
||||
|
@ -357,6 +364,10 @@ def _getProfileHeader(baseDir: str, httpPrefix: str,
|
|||
htmlStr += ' <h1>' + displayName + '</h1>\n'
|
||||
htmlStr += \
|
||||
' <p><b>@' + nickname + '@' + domainFull + '</b><br>\n'
|
||||
if joinedDate:
|
||||
htmlStr += \
|
||||
' <p><b>' + translate['Joined'] + ' ' + \
|
||||
joinedDate.split('T')[0] + '</b><br>\n'
|
||||
if movedTo:
|
||||
newNickname = getNicknameFromActor(movedTo)
|
||||
newDomain, newPort = getDomainFromActor(movedTo)
|
||||
|
@ -417,7 +428,8 @@ def _getProfileHeaderAfterSearch(baseDir: str,
|
|||
avatarUrl: str, imageUrl: str,
|
||||
movedTo: str, actor: str,
|
||||
alsoKnownAs: [],
|
||||
accessKeys: {}) -> str:
|
||||
accessKeys: {},
|
||||
joinedDate: str) -> str:
|
||||
"""The header of a searched for handle, containing background
|
||||
image and avatar
|
||||
"""
|
||||
|
@ -440,6 +452,9 @@ def _getProfileHeaderAfterSearch(baseDir: str,
|
|||
htmlStr += ' <h1>' + displayName + '</h1>\n'
|
||||
htmlStr += \
|
||||
' <p><b>@' + searchNickname + '@' + searchDomainFull + '</b><br>\n'
|
||||
if joinedDate:
|
||||
htmlStr += ' <p><b>' + translate['Joined'] + ' ' + \
|
||||
joinedDate.split('T')[0] + '</b></p>\n'
|
||||
if followsYou:
|
||||
htmlStr += ' <p><b>' + translate['Follows you'] + '</b></p>\n'
|
||||
if movedTo:
|
||||
|
@ -711,6 +726,11 @@ def htmlProfile(rssIconAtTop: bool,
|
|||
if profileJson.get('alsoKnownAs'):
|
||||
alsoKnownAs = profileJson['alsoKnownAs']
|
||||
|
||||
joinedDate = None
|
||||
if profileJson.get('published'):
|
||||
if 'T' in profileJson['published']:
|
||||
joinedDate = profileJson['published']
|
||||
|
||||
avatarUrl = profileJson['icon']['url']
|
||||
|
||||
# get pinned post content
|
||||
|
@ -730,7 +750,8 @@ def htmlProfile(rssIconAtTop: bool,
|
|||
profileDescriptionShort,
|
||||
loginButton, avatarUrl, theme,
|
||||
movedTo, alsoKnownAs,
|
||||
pinnedContent, accessKeys)
|
||||
pinnedContent, accessKeys,
|
||||
joinedDate)
|
||||
|
||||
# keyboard navigation
|
||||
userPathStr = '/users/' + nickname
|
||||
|
|
Loading…
Reference in New Issue