NDOJ/judge/widgets/martor.py

17 lines
479 B
Python
Raw Normal View History

2023-11-02 09:12:56 +00:00
from martor.widgets import AdminMartorWidget as OldAdminMartorWidget, MartorWidget as OldMartorWidget
__all__ = ['MartorWidget', 'AdminMartorWidget']
class MartorWidget(OldMartorWidget):
class Media:
css = {
'all': ['martor-description.css'],
}
js = ['martor-mathjax.js']
class AdminMartorWidget(OldAdminMartorWidget):
class Media:
css = MartorWidget.Media.css
js = ['admin/js/jquery.init.js', 'martor-mathjax.js']