from .tool.func import *
def recent_history_tool(name = 'Test', rev = 1):
with get_db_connect() as conn:
curs = conn.cursor()
num = str(rev)
data = '' + \
'
' + get_lang(conn, 'tool') + '
' + \
''
if admin_check(conn, 6) == 1:
data += '' + get_lang(conn, 'admin') + '
'
data += ''
if admin_check(conn) == 1:
data += '' + get_lang(conn, 'owner') + '
'
data += ''
return easy_minify(conn, flask.render_template(skin_check(conn),
imp = [name, wiki_set(conn), wiki_custom(conn), wiki_css(['(r' + num + ')', 0])],
data = data,
menu = [['history/' + url_pas(name), get_lang(conn, 'return')]]
))