def _renderBottom(self) -> None: links = [ ["O", "opts", tr.actions_options()], ] if self.mw.col.decks.current()["dyn"]: links.append(["R", "refresh", tr.actions_rebuild()]) links.append(["E", "empty", tr.studying_empty()]) else: links.append(["C", "studymore", tr.actions_custom_study()]) # links.append(["F", "cram", _("Filter/Cram")]) if self.mw.col.sched.haveBuried(): links.append(["U", "unbury", tr.studying_unbury()]) links.append(["", "description", tr.scheduling_description()]) buf = "" for b in links: if b[0]: b[0] = tr.actions_shortcut_key(val=shortcut(b[0])) buf += """ <button title="%s" onclick='pycmd("%s")'>%s</button>""" % tuple(b) self.bottom.draw(buf=buf, link_handler=self._linkHandler, web_context=OverviewBottomBar(self))
def _empty(): return tr.studying_empty() if _version_ge_2_1_45() else _("Empty")