mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add eta to overview
This commit is contained in:
parent
cfefbc92ad
commit
b5b24be530
1 changed files with 5 additions and 0 deletions
|
@ -60,10 +60,14 @@ class Overview(object):
|
|||
fc = self._ovForecast()
|
||||
tbl = self._overviewTable()
|
||||
but = self.mw.button
|
||||
eta = self.mw.deck.sched.etaStr()
|
||||
if eta:
|
||||
eta = _("Estimated study time: %s") % eta
|
||||
self.web.stdHtml(self._overviewBody % dict(
|
||||
title=_("Overview"),
|
||||
table=tbl,
|
||||
fcsub=_("Reviews over next two weeks"),
|
||||
eta=eta,
|
||||
fcdata=fc,
|
||||
), css)
|
||||
|
||||
|
@ -73,6 +77,7 @@ class Overview(object):
|
|||
<p>
|
||||
%(table)s
|
||||
<p>
|
||||
%(eta)s<br>
|
||||
<div id="placeholder" style="width:350px; height:100px;"></div>
|
||||
<span class=sub>%(fcsub)s</span>
|
||||
<p>
|
||||
|
|
Loading…
Reference in a new issue