add eta to overview

This commit is contained in:
Damien Elmes 2011-04-24 13:54:22 +09:00
parent cfefbc92ad
commit b5b24be530

View file

@ -60,10 +60,14 @@ class Overview(object):
fc = self._ovForecast() fc = self._ovForecast()
tbl = self._overviewTable() tbl = self._overviewTable()
but = self.mw.button but = self.mw.button
eta = self.mw.deck.sched.etaStr()
if eta:
eta = _("Estimated study time: %s") % eta
self.web.stdHtml(self._overviewBody % dict( self.web.stdHtml(self._overviewBody % dict(
title=_("Overview"), title=_("Overview"),
table=tbl, table=tbl,
fcsub=_("Reviews over next two weeks"), fcsub=_("Reviews over next two weeks"),
eta=eta,
fcdata=fc, fcdata=fc,
), css) ), css)
@ -73,6 +77,7 @@ class Overview(object):
<p> <p>
%(table)s %(table)s
<p> <p>
%(eta)s<br>
<div id="placeholder" style="width:350px; height:100px;"></div> <div id="placeholder" style="width:350px; height:100px;"></div>
<span class=sub>%(fcsub)s</span> <span class=sub>%(fcsub)s</span>
<p> <p>