n_list_history.py 867 B

12345678910111213
  1. from .tool.func import *
  2. def list_history(num = 1, set_type = 'normal', doc_name = 'Test'):
  3. with get_db_connect() as conn:
  4. return easy_minify(conn, flask.render_template(skin_check(conn),
  5. imp = [doc_name, wiki_set(conn), wiki_custom(conn), wiki_css(['(' + get_lang(conn, 'history') + ')', 0])],
  6. data = '' + \
  7. '<div id="opennamu_list_history"></div>' + \
  8. '<script defer src="/views/main_css/js/route/list_history.js' + cache_v() + '"></script>' + \
  9. '<script>window.addEventListener("DOMContentLoaded", function() { opennamu_list_history(); });</script>' + \
  10. '',
  11. menu = [['other', get_lang(conn, 'return')], ['history_add/' + url_pas(doc_name), get_lang(conn, 'history_add')], ['history_reset/' + url_pas(doc_name), get_lang(conn, 'history_reset')]]
  12. ))