${gettext("Sync status")}
++ ${until(LDAPSource.syncStatus(this.source.slug).then((ls) => { + if (!ls.last_sync) { + return gettext("Not synced in the last hour, check System tasks."); + } + const syncDate = new Date(ls.last_sync * 1000); + return gettext(`Last sync: ${syncDate.toLocaleString()}`) + }), "loading")} +
+Invalid source type ${this.source.object_type}
`; + } } }