4d736d4821
* Each model.User now has a current storage bytes and a rate plan. * model.User.to_dict() updated accordingly. * Minor Scheduler.add() change to bail of the given thread is None. * controller.Users.current() returns current user's rate plan details. * controller.Users.update_storage() now takes an optional callback. * Various methods in controller.Notebooks responsible for calling controller.Users.update_storage(). * Added rate plan details to config/Common.py. * Added quota utilization colors to style.css. * Implemented quota utilization calculation and display in Wiki.js. Still to-do: Return updated storage bytes where appropriate in controller.Notebook and update the client accordingly.
18 lines
291 B
Python
18 lines
291 B
Python
from Tags import Div, H3, A
|
|
|
|
|
|
class Link_area( Div ):
|
|
def __init__( self, notebook_id ):
|
|
Div.__init__(
|
|
self,
|
|
Div(
|
|
id = u"this_notebook_area",
|
|
),
|
|
Div(
|
|
id = u"notebooks_area",
|
|
),
|
|
Div(
|
|
id = u"storage_usage_area",
|
|
),
|
|
)
|